File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 8181- Issue #11268: Prevent Mac OS X Installer failure if Documentation
8282 package had previously been installed.
8383
84+ Tools/Demos
85+ -----------
86+
87+ - Issue #11179: Make ccbench work under Python 3.1 and 2.7 again.
88+
8489Tests
8590-----
8691
Original file line number Diff line number Diff line change @@ -276,7 +276,8 @@ def _recv(sock, n):
276276 return sock .recv (n ).decode ('ascii' )
277277
278278def latency_client (addr , nb_pings , interval ):
279- with socket .socket (socket .AF_INET , socket .SOCK_DGRAM ) as sock :
279+ sock = socket .socket (socket .AF_INET , socket .SOCK_DGRAM )
280+ try :
280281 _time = time .time
281282 _sleep = time .sleep
282283 def _ping ():
@@ -289,6 +290,8 @@ def _ping():
289290 _sleep (interval )
290291 _ping ()
291292 _sendto (sock , LAT_END + "\n " , addr )
293+ finally :
294+ sock .close ()
292295
293296def run_latency_client (** kwargs ):
294297 cmd_line = [sys .executable , '-E' , os .path .abspath (__file__ )]
You can’t perform that action at this time.
0 commit comments