A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2000-August/008476.html below:

[Python-Dev] [Bug #111620] lots of use of send() without verifying amount of data sent

[Python-Dev] [Bug #111620] lots of use of send() without verifying amount of data sent [Python-Dev] [Bug #111620] lots of use of send() without verifying amount of data sentCharles G Waldman cgw@fnal.gov
Fri, 18 Aug 2000 02:01:59 -0500 (CDT)
I'm jumping in late to this discussion to mention to mention that even
for sockets in blocking mode, you can do sends with the MSG_DONTWAIT
flag:

sock.send(msg, socket.MSG_DONTWAIT)

and this will send only as much data as can be written immediately.
I.E., a per-message non-blocking write, without putting the socket
into blocking mode.

So if somebody decides to raise an exception on short TCP writes, they
need to be aware of this.  Personally I think it's a bad idea to be
raising an exception at all for short writes.




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4