examples/http_client*: Be sure to close socket.
Otherwise, on bare-metal/RTOS systems can lead to resource leaks.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user