Search found 2 matches

by Emil
Fri Nov 10, 2017 10:27 pm
Forum: General Discussion and Questions
Topic: socket problem
Replies: 4
Views: 7268

Re: socket problem

Thank you for your replies. I have added gc.collect() at the start of the program. The problem with this is that if I stop the program and then rerun it, the socket does not appear to be garbage collected. But if I wait a few minutes before running the program again it does work. s.close() is fine i...
by Emil
Thu Nov 09, 2017 5:29 pm
Forum: General Discussion and Questions
Topic: socket problem
Replies: 4
Views: 7268

socket problem

I'm trying to make a very basic server based on the example here: https://docs.micropython.org/en/latest/esp8266/esp8266/tutorial/network_tcp.html The code below works as expected the first time I run it. But if I run the same program again I get "OSError: 112" on the line with "s.bind(addr)". Chang...