This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author xdegaye
Recipients giampaolo.rodola, josiahcarlson, neologix, stutzbach, xdegaye
Date 2011-11-03.17:13:20
SpamBayes Score 3.4683348e-05
Marked as misclassified No
Message-id <1320340401.79.0.591416195559.issue13311@psf.upfronthosting.co.za>
In-reply-to
Content
> I'd say your patch can be useful only in case the dispatcher subclass
> doesn't send() neither recv() any data, in which case the connection
> is supposed to remain open forever.

There are some cases where it is important to detect that the remote
end is disconnected even if there is no data to send. Say a logger
connected to a data collector that sends data every few minutes. The
data collector dies, the logger may have to take actions on this
event: connect to a backup collector, raise an alarm, whatever... It
should not have to depend on the fact that data needs to be sent to
learn of the disconnection.

> Perhaps you could provide more info about why you needed to do this
> in the first place.

See also issue 12498 and the message 146653. When the remote end
performs a half-duplex disconnection, you may send data without
detecting the close event in send(), so you must rely on recv() to
detect it.
History
Date User Action Args
2011-11-03 17:13:21xdegayesetrecipients: + xdegaye, josiahcarlson, giampaolo.rodola, stutzbach, neologix
2011-11-03 17:13:21xdegayesetmessageid: <1320340401.79.0.591416195559.issue13311@psf.upfronthosting.co.za>
2011-11-03 17:13:21xdegayelinkissue13311 messages
2011-11-03 17:13:20xdegayecreate