You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2013-12-04.20:16:23.946>created_at=<Date2013-12-04.07:21:06.143>labels= ['type-bug', 'docs']
title='Closing a socket when makefile() is used'updated_at=<Date2013-12-04.20:16:23.945>user='https://github.com/vadmium'
I think the documentation is rather vague about closing the underlying OS socket. Can someone verify if the following is true (asterisked bits are my additions), and maybe update the documentation?
socket.close(): Close the socket *object*. *The underlying file descriptor is also closed, unless there are file objects from makefile() still open.*
socket.makefile(): Closing the file object won’t close the *file descriptor* unless *the original socket object and any other file objects have already been closed*.
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: