News for hackers. Stuff that matters.
Re:Presentation on the new Python GIL by haberman on Monday January 18, 2010 @12:44PM (#1060361)
In the SuS description of poll(), it says that POLLOUT means "Normal data may be written without blocking." However it does not say how much data. It is unexpected that a write() call would block instead of returning a short count; for example, if you feed it a 2G buffer, it could return 4096 indicating that only 4k of the 2G was actually written.
Re:Presentation on the new Python GIL by ajross on Monday January 18, 2010 @01:57PM (#1060569)
It could, but it doesn't and never has. The standard was written to admit a broader set of behavior than real systems actually implement. And in this case, there's absolutely nothing "surprising" to my eyes about a blocking (!) socket blocking on overflow.

Again: there is already a mechanism in place to support non-blocking behavior, and it's not this one.