text_combined: trent nelson ktctpxaonresolvecom ive attached patch httpbugspythonorgfile9966trunk2550patch issue 2550 addresses original problem test_supportbind_port potentially returning ports already bound patch updates tests relied method call new calling convention test_ftplib test_httplib test_socket test_ssl_socket test_asynchat test_telnetlib objections patch would like commit sooner rather later itll fix buildbots wedging test_asynchat least trent ________________________________________ lnmudhrdtmzckqvwlnmudhrdtmzckqvwlnmpythonorg lnmudhrdtmzckqvwlnmudhrdtmzckqvwlnmpythonorg behalf trent nelson ktctpxaonresolvecom sent 05 april 2008 1822 jeanpaul calderone zvlllneumpythonorg subject pythondev socketsol_reuseaddr different semantics windows vs unix test_asynchat sometimes dying windows tcp never able start multiple servers bind ip address port completely duplicate binding start one server binds 19869102 port 80 start another also binds 19869102 port 80 even set so_reuseaddr socket option second server notice quoted text explains start multiple servers etc since didnt call listen either socket arguable didnt start servers surprise regarding behavior try adding listen calls various places example youll see something different happen agree principle stevens says nothing happens try bind two sockets two identical hostport addresses even test_supportbind_port makes assumption bind raise eaddrinuse port available demonstrated wont case windows linux fwiw aiui so_reuseaddr behaves described quote linuxbsdunixetc windows however option actually means something quite different means address stolen process happens using moment probably explains python process wedges happens windows another option so_exclusiveaddruse windows think aiui makes impossible another process steal port using so_reuseaddr nod so_exclusiveaddruse used instead code posted windows raises eaddrinuse second bind dont access linux boxes moment cant test sort error raised example posted listen accept called two sockets bound identical addresses anyone else shed light id interested knowing process wedges linux badly windows point respecting ctrlc sigkill trent _______________________________________________ pythondev mailing list zvlllneumpythonorg httpmailpythonorgmailmanlistinfopythondev unsubscribe httpmailpythonorgmailmanoptionspythondevtnelson40onresolvecom _______________________________________________ pythondev mailing list zvlllneumpythonorg httpmailpythonorgmailmanlistinfopythondev unsubscribe httpmailpythonorgmailmanoptionspythondevpythondev40tangomucom thu 07 aug 2008 023248 0700 pythondev socketsol_reuseaddr different semantics windows vs unix test_asynchat sometimes dying windows