• (sorry for multipost, forum is breaking edit window every time I scroll in it...)

    res.on('close',...) is not being called.

    Ever, for any of the requests

    
    function setFargo(relay,state) {
      console.log("setFargo called");
    	var postfix = (state) ? "/on":"/off";
    	require("http").get(fargourl+(relay+1).toString()+postfix, function(res) {
    		res.on('close',function () {
              console.log("onClose called");
    			if(this.code==200) {
    				fargo[relay]=state;
    			}
    		});
    	});
    }
    
    

    Here's a log of that "onClose called" is never recorded. I also added that to the more boring ones, and saw the same behavior :-/ So yeah - it looks like on close event isn't being handled on the ESP8266:

About

Avatar for DrAzzy @DrAzzy started