ESP8266 Developer Zone The Official ESP8266 Forum 2017-12-14T11:31:09+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=8758 2017-12-14T11:31:09+08:00 2017-12-14T11:31:09+08:00 https://bbs.espressif.com:443/viewtopic.php?t=8758&p=18695#p18695 <![CDATA[Too many connections and ERR_CONNECTION_RESET]]>
The problem occurs when I start a second instance of the same page on a separate browser. As the first browser has one of the connections tied up with the web socket, this second instance only has 4 connections to work. Usually, one of the JavaScript files does not get downloaded. It can be any of the three JavaScript files. When it does fail, Chrome shows an error code of ERR_CONNECTION_RESET. I also note in my server that my espconn_connect_callback method never gets called for this reset file. All other calls coming in to the espconn_connect_callback are accounted for.

From this, I surmise that the lower level is making a decision to reset the connection before it is passed up to my espconn_connect_callback method. Is there a way for me to either:

1)Make the lower level keep the connection until one of the other five finishes?
2)To reset the connection in a way that the browser will do a retry?

Thank you for any help you may be able to provide.

Statistics: Posted by Inquisitor — Thu Dec 14, 2017 11:31 am


]]>