Does micropython raise ENOMEM for reasons other than actually running out of memory? I'm trying to write a simple http server; you can see the code at https://gist.github.com/larsks/1cf5f8cd ... b93433cc32. It doesn't do anything right now other than parse an HTTP request and send a short one-line response.
I am consistently getting:
Code: Select all
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "server.py", line 107, in <module>
File "server.py", line 78, in serve
File "server.py", line 74, in create_socket
OSError: [Errno 12] ENOMEM
Code: Select all
s.listen(1)
Code: Select all
>>> gc.mem_free()
24400
Code: Select all
>>> esp.freemem()
8632