Skip to content

webserver stops responding during send() #1554

Closed
@ghost

Description

I have a strange issue here that I have trouble searching for information on the net.
I found some similar issues but not exactly what I got here...

I am using Arduino 1.6.5 and the latest Arduino-master downloaded today.
The sketch is getting data over UART and outputing a html-table with this data.
As the table is quite big, it is streamed out in bits of about 2k.

During the command "pclient->print(sTable);" the server stops sending data and the table is not updated in the browser.
A new request from the browser works fine. (With an older version of Ardiuno-master the device did reset with wdt_reset.)

debug output on a failing transmission is:

new client
GET / HTTP/1.1
:wr
:sent 86
:ww
:wr
:sent 576
:ww
:wr
:sent 1460
:sent 673
:ww
:wr
:sent 1460
:sent 667
:ww
:wr
:er -8 2108 1
:ww
:wr !_pcb
:wr !_pcb
:wr !_pcb
:ur 1
WS:dis
:del
Client disconnected
ip:192.168.0.100,mask:255.255.255.0,gw:192.168.0.254
wifi evt: 3

Any idea what error -8 means? Still haven't found good documentation of all this and am not able to track it down in the source code.

It happens in different positions of the transmission and after different time/number of request from the browser.
Transmitting more data seems to make the error appear sooner, but I cannot confirm that for sure.

What's more, I get this debug output

ip:192.168.0.100,mask:255.255.255.0,gw:192.168.0.254
wifi evt: 3

every few minutes, even with the ESP with no activity UART or WiFi. It's basicallly idling.
I cannot find where this is output in the firmware...

I hope that I described this behaviour in an intelligible manner...

best regards,
Bob

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Metadata

Metadata

Assignees

No one assigned

    Labels

    waiting for feedbackWaiting on additional info. If it's not received, the issue may be closed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions