You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • There's a bug for this and I'll try and get a fix in soon. It shouldn't be too hard - although having said that the Unlink doesn't say which socket has closed, so it could still cause problems.

    You could check if sockets are closing by doing something like:

    http.get("http://www.espruino.com", function(res) {
      digitalWrite(LED1,1);
      res.on('data', function(data) {
        console.log(data);
      });
      res.on('close', function(data) {
        digitalWrite(LED1,0);
      });
    });
    

    As a stop-gap you could do something similar to make sure you don't fire off multiple requests at once I guess.

About

Avatar for Gordon @Gordon started