text_combined: giampaolo rodola vsqhokgmailcom maybe would better considering windows ce systems osname nt osname nt ce moreover method called try_reuse_address id expect self_socksetsockoptsol_socket so_reuseaddr 1 would placed inside tryexcept block 29 apr 1558 trent nelson wrote since recent changes networkingoriented tests issue 2550 r62234 r62237 think safe say stability test suite nonwindows platforms improved significantly area dont recall seeing socket errors nix buildbot logs since commits however windows buildbots still periodically failing specifically windows buildbots still failing one thing thats different buildbots two run time trunk py3k one x86 build x64 build since changes aforementioned revisions behaviour buildbots definitely improved longer completely wedge test_asyncchatcore mainly due abolishing use so_reuseaddr socket option networkoriented tests however periodically theyre still dyingfailing variety ways see relevant log snippets end email examples attribute fact so_reuseaddr still set socket option asyncorepy socketserverpy basically so_reuseaddr never set windows tcpip sockets using asyncorepy example two ways could handle 1 hard code windows optout asyncorepy revision 62509 asyncorepy working copy 2676 2678 def set_reuse_addrself try reuse server port possible osname nt selfsocketsocket_type socketsock_dgram return try selfsocketsetsockopt socketsol_socket socketso_reuseaddr 2 introduce sockettry_reuse_address asyncorepy revision 62509 asyncorepy working copy 26615 2667 selfadd_channelmap def set_reuse_addrself try reuse server port possible try selfsocketsetsockopt socketsol_socket socketso_reuseaddr selfsocketgetsockoptsocketsol_socket socketso_reuseaddr 1 except socketerror pass selfsockettry_reuse_address try_use_address implemented follows socketpy revision 62509 socketpy working copy 1976 19710 return new socket object connected system resource return _socketobject_sockself_sock def try_reuse_addressself osname nt self_socktype sock_dgram self_socksetsockoptsol_socket so_reuseaddr 1 def makefileself moder bufsize1 makefilemode bufsize file object prefer latter cleaner easier document encapsulates trying relatively well affected modules would asyncorepy socketserverpy idlelibrpcpy thoughts regards trent test_ftplib remotefailed failure instance traceback failure frames twistedinterneterrorconnectionlost connection side lost nonclean fashion test_asynchat test test_asynchat failed errors occurred run verbose mode details snip bottom log test_asynchat rerun 1 test failed test_asynchat 33 tests skipped test__locale test_aepack test_applesingle test_cprofile test_commands test_crypt test_curses test_dbm test_epoll test_fcntl test_fork1 test_gdbm test_grp test_ioctl test_kqueue test_macostools test_mhlib test_nis test_openpty test_ossaudiodev test_pipes test_poll test_posix test_pty test_pwd test_resource test_scriptpackages test_signal test_syslog test_threadsignals test_wait3 test_wait4 test_zipfile64 skips expected win32 rerunning failed tests verbose mode rerunning test test_asynchat verbose mode test_close_when_done testtest_asynchattestasynchat ok test_empty_line testtest_asynchattestasynchat ok test_line_terminator1 testtest_asynchattestasynchat ok test_line_terminator2 testtest_asynchattestasynchat ok test_line_terminator3 testtest_asynchattestasynchat ok test_none_terminator testtest_asynchattestasynchat ok test_numeric_terminator1 testtest_asynchattestasynchat ok test_numeric_terminator2 testtest_asynchattestasynchat ok test_simple_producer testtest_asynchattestasynchat ok test_string_producer testtest_asynchattestasynchat ok test_close_when_done testtest_asynchattestasynchat_withpoll ok test_empty_line testtest_asynchattestasynchat_withpoll ok test_line_terminator1 testtest_asynchattestasynchat_withpoll ok test_line_terminator2 testtest_asynchattestasynchat_withpoll ok test_line_terminator3 testtest_asynchattestasynchat_withpoll ok test_none_terminator testtest_asynchattestasynchat_withpoll ok test_numeric_terminator1 testtest_asynchattestasynchat_withpoll ok test_numeric_terminator2 testtest_asynchattestasynchat_withpoll ok test_simple_producer testtest_asynchattestasynchat_withpoll ok test_string_producer testtest_asynchattestasynchat_withpoll ok test_find_prefix_at_end testtest_asynchattesthelperfunctions ok test_basic testtest_asynchattestfifo ok test_given_list testtest_asynchattestfifo ok ran 23 tests 11812s ok note rerunning test didnt result test failing 1 test failed test_smtplib traceback recent call last file sbuildbotspython30nelsonwindowsbuildlibthreadingpy line 493 _bootstrap_inner selfrun file sbuildbotspython30nelsonwindowsbuildlibthreadingpy line 449 run self_targetself_args self_kwargs file sbuildbotspython30nelsonwindowsbuildlibtesttest_smtplibpy line 106 debugging_server poll_fun001 asyncoresocket_map file sbuildbotspython30nelsonwindowsbuildlibasyncorepy line 132 poll readobj file sbuildbotspython30nelsonwindowsbuildlibasyncorepy line 72 read objhandle_error file sbuildbotspython30nelsonwindowsbuildlibasyncorepy line 68 read objhandle_read_event file sbuildbotspython30nelsonwindowsbuildlibasyncorepy line 390 handle_read_event selfhandle_read file sbuildbotspython30nelsonwindowsbuildlibtesttest_sslpy line 524 handle_read data selfrecv1024 file sbuildbotspython30nelsonwindowsbuildlibasyncorepy line 342 recv data selfsocketrecvbuffer_size file sbuildbotspython30nelsonwindowsbuildlibsslpy line 247 recv return selfreadbuflen file sbuildbotspython30nelsonwindowsbuildlibsslpy line 162 read v self_sslobjreadlen 1024 socketerror errno 10053 established connection aborted software host machine _______________________________________________ pythondev mailing list pythonpythonorghttpmailpythonorgmailmanlistinfopythondev unsubscribehttpmailpythonorgmailmanoptionspythondevpythondev2garchiv _______________________________________________ pythondev mailing list zvlllneumpythonorg httpmailpythonorgmailmanlistinfopythondev unsubscribe httpmailpythonorgmailmanoptionspythondevpythondev40tangomucom thu 07 aug 2008 204014 0700 pythondev sockettry_reuse_address