diff --git a/examples/network/http_client.py b/examples/network/http_client.py index 3701e75e16..df66ace2a5 100644 --- a/examples/network/http_client.py +++ b/examples/network/http_client.py @@ -24,5 +24,7 @@ def main(use_stream=False): s.send(b"GET / HTTP/1.0\n\n") print(s.recv(4096)) + s.close() + main() diff --git a/examples/network/http_client_ssl.py b/examples/network/http_client_ssl.py index 53b1c732bc..46e039830f 100644 --- a/examples/network/http_client_ssl.py +++ b/examples/network/http_client_ssl.py @@ -32,5 +32,7 @@ def main(use_stream=True): s.send(b"GET / HTTP/1.0\n\n") print(s.recv(4096)) + s.close() + main()