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.

Author spiv
Recipients barry, dil, ezio.melotti, gz, r.david.murray, spiv
Date 2010-08-09.08:06:34
SpamBayes Score 0.000111399
Marked as misclassified No
Message-id <1281341199.84.0.598614930452.issue9543@psf.upfronthosting.co.za>
In-reply-to
Content
I have a reproduction script on the Ubuntu bug report I just filed for this issue: <https://bugs.launchpad.net/ubuntu/+source/python2.6/+bug/615240>

Pasting here for convenience:

"""
import socket
import threading

sock_a, sock_b = socket.socketpair()
sock_a = socket.socket(_sock=sock_a)

def read_byte_then_close(s):
    data = s.recv(1)
    s.close()

t = threading.Thread(target=read_byte_then_close, args=(sock_b,))
t.start()

file_a = sock_a.makefile('w')
file_a.writelines(['a'*8192]*1000)
file_a.flush()
t.join()
"""

It's not quite good enough to add to the test suite yet IMO, but it's a starting point.
History
Date User Action Args
2010-08-09 08:06:40spivsetrecipients: + spiv, barry, ezio.melotti, r.david.murray, gz, dil
2010-08-09 08:06:39spivsetmessageid: <1281341199.84.0.598614930452.issue9543@psf.upfronthosting.co.za>
2010-08-09 08:06:35spivlinkissue9543 messages
2010-08-09 08:06:34spivcreate