-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HTTP Server with Dual Interfaces #38
Comments
I don't think this problem has anything to do with |
I am not sure where the issue lies, but it is specific to the Perhaps the issue lies elsewhere. I have run the following experiment to try and explain the issue: The wifi interface get's ip 192.168.35.106. The Ethernet interface gets ip 192.168.35.104. I will target the wifi IP and the ethernet IP using 1. Only WiFi connected, ethernet unplugged:wifi:
ethernet:
2. WiFi connected, Ethernet connected.wifi:
ethernet:
3. WiFi disconnected, Ethernet connected.wifi:
ethernet:
At this point, all requests will show I raised the issue here because I have another service on the same device on port 502 (modbus TCP). That service is run on an The HTTP server on the other hand runs on
|
I am suspicious of the connection reset by peer part here. Underneath TLDR is that my 502 service seems bulletproof across different network connectivity states, |
Another curiousity is that this is far from consistent behaviour, which is why I previously asked about time out logic in the API (thank you again). It seems that eventually, the clog clears. The last clue I can give is from the logs:
|
For these experiments, are you running The versions before latest I.e. did you run |
I will run a I see. I think I misunderstood the timeouts, I thought they were still built in. |
I have an ESP32s3 running Ethernet via EspSpiEth() and a WiFi Access Point.
When I first connect my laptop to the AP over WiFI, I can connect to the HTTP server and make requests.
When I then connect my laptop to an ethernet switch, I can no longer make any requests to the HTTP server, and I get responses like:
Error: read ECONNRESET
When I then re-connect my laptop to the AP over WiFi, all subsequent requests return
Error: read ECONNRESET
.I discovered this while trying to get the EspMdns() service to respond to the
host name.local
on all network interfaces (WIFI_STA, WIFI_AP, ETH_CL).The text was updated successfully, but these errors were encountered: