Skip to content

Commit e1f495a

Browse files
DSIWdpgeorge
authored andcommitted
docs/esp8266/tutorial: Close socket after reading page content.
1 parent 3c84197 commit e1f495a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/esp8266/tutorial/network_tcp.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ Let's define a function that can download and print a URL::
7272
print(str(data, 'utf8'), end='')
7373
else:
7474
break
75+
s.close()
7576

7677
Make sure that you import the socket module before running this function. Then
7778
you can try::

0 commit comments

Comments
 (0)