Out of sockets error

Posted on
  • When testing and debugging, after a while to http server code fails to start with an out of sockets error.

    This happens after a number of uploads from the web ide.

    I believe it is due to the old http server sessions not shutting down properly.

    I have my board set up so it auto joins my local wifi.

    At the moment I just hit the reset button on the board, and re upload, however it would be handy to shutdown the connections cleanly. Can this be down with an E.event on after a .reset?

    Wifi.disconnect and wifi.connect() does do the job, however it would be great if an event could trigger.

  • I'm heard this before, will have to investigate. Does this capture your issue: https://github.com/espruino/Espruino/iss­ues/809 ?

  • The thanks. I've add some comments there.

  • I've seen the same behavior. It isn't consistent - sometimes it happens, sometimes it doesn't. But lots of uploads from the webide which create a server seems to be key.

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

Out of sockets error

Posted by Avatar for Wilberforce @Wilberforce

Actions