Home | History | Annotate | Download | only in test

Lines Matching refs:closing

23 from contextlib import closing
330 with closing(ssl.wrap_socket(s)) as ss:
344 with closing(ssl.wrap_socket(s)) as ss:
358 with closing(ssl.wrap_socket(sock, server_side=True, certfile=CERTFILE)) as s:
362 with closing(socket.socket()) as sock:
366 with closing(socket.socket()) as sock:
371 with closing(socket.socket()) as sock:
535 with closing(socket.socket()) as sock:
542 with closing(ssl.wrap_socket(s)) as ss:
551 with closing(ssl.wrap_socket(s)) as ss:
555 with closing(ssl.wrap_socket(s, server_side=True, certfile=CERTFILE)) as ss:
1304 with closing(socket.socket()) as s:
1310 with closing(ctx.wrap_socket(c, False, do_handshake_on_connect=False)) as c:
1491 with closing(ctx.wrap_socket(socket.socket(socket.AF_INET))) as s:
1500 with closing(ctx.wrap_socket(socket.socket(socket.AF_INET))) as s:
1508 # delay closing the underlying "real socket" (here tested with its
1518 # Closing the SSL socket should close the fd too
1577 with closing(ssl.wrap_socket(socket.socket(socket.AF_INET),
1580 with closing(ssl.wrap_socket(socket.socket(socket.AF_INET),
1585 with closing(socket.socket(socket.AF_INET)) as sock:
1641 with closing(ctx1.wrap_socket(s)) as ss:
1987 with closing(client_context.wrap_socket(socket.socket(),
2008 sys.stdout.write(" client: closing connection.\n")
2151 with closing(context.wrap_socket(socket.socket())) as s:
2161 with closing(context.wrap_socket(socket.socket())) as s:
2171 with closing(context.wrap_socket(socket.socket())) as s:
2191 with closing(context.wrap_socket(socket.socket(),
2200 with closing(context.wrap_socket(socket.socket(),
2209 with closing(socket.socket()) as s:
2227 closing(socket.socket()) as sock, \
2228 closing(ssl.wrap_socket(sock,
2271 with closing(socket.socket()) as c:
2479 sys.stdout.write(" client: closing connection.\n")
2539 sys.stdout.write(" client: closing connection.\n")
2770 with closing(context.wrap_socket(socket.socket())) as sock:
2777 with closing(context.wrap_socket(socket.socket())) as sock:
2792 with closing(context.wrap_socket(socket.socket())) as s:
2806 with closing(context.wrap_socket(socket.socket())) as s:
2825 with closing(context.wrap_socket(socket.socket())) as s: