Message278949
| Author |
martin.panter |
| Recipients |
martin.panter, python-dev, vstinner, yselivanov |
| Date |
2016年10月18日.23:38:33 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1476833913.79.0.991472666517.issue26685@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
If libuv closes the FD (step 3), won’t you get the same sort of problem if the uvloop user tries to do something else with the Python socket object, e.g. call getpeername()?
I see the fileno=... parameter for sockets as a parallel to the os.fdopen() function, which does raise exceptions from FileIO.close().
Maybe one option is to only trigger a DeprecationWarning, and raise a proper OSError in a future version. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2016年10月18日 23:38:33 | martin.panter | set | recipients:
+ martin.panter, vstinner, python-dev, yselivanov |
| 2016年10月18日 23:38:33 | martin.panter | set | messageid: <1476833913.79.0.991472666517.issue26685@psf.upfronthosting.co.za> |
| 2016年10月18日 23:38:33 | martin.panter | link | issue26685 messages |
| 2016年10月18日 23:38:33 | martin.panter | create |
|