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 palaviv
Recipients martin.panter, palaviv
Date 2016-02-20.10:15:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1455963319.43.0.297018484338.issue26392@psf.upfronthosting.co.za>
In-reply-to
Content
I see your point about the server_close purpose and I changed the patch to simulate the behavior of closed file (raising ValueError when operating on closed file).
I don't think that this should be an enhancement as what i try to do is return the behavior as it was before the change to the selectors module. When closing the socket using server_close at the next serve_forever loop you would have gotten ValueError for bad file descriptor to select. In the current implementation we actually keep on pulling on a already free resource.
I know that the user should call shutdown before the server_close but i think that as you said the behavior should simulate closed file. When someone will try to use any other function of a closed file he will receive a ValueError.
History
Date User Action Args
2016-02-20 10:15:19palavivsetrecipients: + palaviv, martin.panter
2016-02-20 10:15:19palavivsetmessageid: <1455963319.43.0.297018484338.issue26392@psf.upfronthosting.co.za>
2016-02-20 10:15:19palavivlinkissue26392 messages
2016-02-20 10:15:19palavivcreate