Closed stlehmann closed 7 years ago
I think you have to close the Socket. Get returns a response object, call close() with it.
Ah I see. This solves the issue. Thank you for that. It is a bit confusing though because I wouldn' t expect to need to close my response object. How about using a context manager instead?
I am trying to send a simple
GET
request to a host. Everything is fine but after the second or third request I will get an OSError: -2. The code I use is simple:I can not really put my finger on what's wrong here. I'm using MicroPython v1.8.7-7-gb5a1a20a3 from 09.01.2017.