Skip to content

ESP8266 Server does not honour setNoDelay(true) #838

Closed
@drmpf

Description

@drmpf

My sketch has this code
bool NoDelayFlag = true;
...
server.begin();
server.setNoDelay(NoDelayFlag);

A detailed examination of the wireshark capture shows when sending the response
{.`6000|C~Toggle Button}
The first packet has just { and the second packet has the rest BUT
the second packet is delayed by 200mS until the first packet is acked
This should not happen with setNoDelay(true)

CSV of packet details
,Time Of Day,Seq,Source,Destination,Len,Hdr,Net,Tspt,Flags,Data,Blks,Function,Content,Comment
,18:38:58.175649,678,ESP8266: 4989,DELL:50561,64,58,IP4,TCP, AP ,1,,,{,1 byte over
,18:38:58.396734,679,DELL:50561,ESP8266: 4989,64,58,IP4 DF,TCP, A ,,,,,
,18:38:58.408653,680,ESP8266: 4989,DELL:50561,97,58,IP4,TCP, AP ,39,1,,.`6000|C~Toggle Button},40 bytes aggregated\ Trans: Request in 0.2418 secs

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions