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.

classification
Title: Socker send method throws a timeout exception
Type: behavior Stage: resolved
Components: IO Versions: Python 3.7
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: iritkatriel, pppig
Priority: normal Keywords:

Created on 2020-09-04 09:02 by pppig, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
tcpclient.py pppig, 2020-09-04 09:20 test tcp client
tcpserver.py pppig, 2020-09-04 09:24 test tcp server
Messages (2)
msg376342 - (view) Author: pig (pppig) * Date: 2020-09-04 09:33
When tcpclient.py and tcpserver.py files are run on macOS at the same time, custom exceptions will be thrown due to exceeding the given timeout.Timed out: Timed out When one or two files are running on window, socker.send throws an exception socket.timeout: Timed out.
The description of the send function I saw on the [web site](https://docs.python.org/3.7/library/socket.html#socket.socket.send) does not seem to throw an exception
msg410992 - (view) Author: Irit Katriel (iritkatriel) * (Python committer) Date: 2022-01-20 00:04
The timeout is mentioned in the documentation of create_connection, and of its getter and setter. It applies to many operations on the socket, but not mentioned for each method. Since it's pretty standard to have a timeout for network operations, I think the documentation is fine as it is.
History
Date User Action Args
2022-04-11 14:59:35adminsetgithub: 85877
2022-01-29 13:07:27iritkatrielsetstatus: pending -> closed
stage: resolved
2022-01-20 00:04:04iritkatrielsetstatus: open -> pending

nosy: + iritkatriel
messages: + msg410992

resolution: not a bug
2020-09-04 09:33:28pppigsetmessages: + msg376342
2020-09-04 09:24:06pppigsetfiles: + tcpserver.py
2020-09-04 09:20:35pppigsetfiles: + tcpclient.py
2020-09-04 09:02:51pppigcreate