gregory p smith amuhkryptoorg tue apr 8 2008 500 trent nelson wrote ive forwarding recent update issue 2550 proposed patch general approach networkoriented test cases vetted wider audience httpbugspythonorgfile9980trunk25502patch patch works towards fixing large proportion tests written way often leads buildbot errors port conflicts arise patch applied run many instances test suite parallel none networkoriented tests fail currently try plenty discussion mostly replying comments subject httpbugspythonorgissue2550 anyone issues new approach im particularily interested whether people disagree assumption ive drawn regarding never using so_reuseaddr tests tcpip sockets see trent think assumptions fair note using so_reuseaddr reserve port minutes beyond actual unbinding destruction server socket oses tens thousands ports available likely 1200 needed full test suite run long test suite takes run think acceptable problem likely ever run fix iffwe ever gps ________________________________________ uaaetvcemoxfnrlauaaetvcemoxfnrlauaaetvcepythonorgpythonbugslistbouncestnelson lihbynuiquappythonorg behalf trent nelson zlvadjbugspythonorg sent 08 april 2008 1249 vskuoxyohzcrrfpythonorg subject issue2550 so_reuseaddr doesnt semantics windows unix trent nelson added comment invested quite cycles issue last night time spent became convinced every single test working sockets changed one fell swoop order facilitate virtually unlimited parallel test execution without fear port conflicts ive attached second patch trunk25502patch progress far main changes expressed following two points whatever takes networkoriented tests ensure unique ports obtained relying bind_port find_unused_port methods exposed test_support b never ever ever call so_reuseaddr socket test putting much effort obtaining unique port never necessary rare cases attempts obtain unique port fail absolutely fail eaddrinuse ability obtain unique port duration clientserver test invariant must able depend upon invariant broken fail immediately dont mask problem so_reuseaddr patch applied spawn handful python processes run entire test suite without r ensuring tests run order encourage port conflicts without errors completely utterly impossible well almost without error io related tests try open test fail believe theres still outstanding work patch regards intracacies so_reuseaddr so_exclusiveaddruse handled rest stdlib im still thinking best approach however patch currently stands still quite substantial wanted get sooner rather later review ill forward pythondev try encourage eyes people far networkfu added file httpbugspythonorgfile9980trunk25502patch __________________________________ tracker __________________________________ _______________________________________________ pythonbugslist mailing list unsubscribe httpmailpythonorgmailmanoptionspythonbugslisttnelson40onresolvecom _______________________________________________ pythondev mailing list zvlllneumpythonorg httpmailpythonorgmailmanlistinfopythondev unsubscribe httpmailpythonorgmailmanoptionspythondevgreg40kryptoorg thu 07 aug 2008 034933 0700 pythondev changing networkoriented tests facilitate virtually unlimited parallel test execution issue 2550