lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] Socket: Connection closed before sending all data


From: ricardoschoof
Subject: Re: [lwip-users] Socket: Connection closed before sending all data
Date: Tue, 21 May 2019 23:58:31 -0700 (MST)

address@hidden wrote
> Send data before returning from *what*?

Returning out of the lwip_send function. I have read on several sources that
the bsd sockets were blocking (for instance here:
https://lwip.fandom.com/wiki/Application_API_layers )


address@hidden wrote
> Send data before returning from *what*? Because the default is that it
> doesn't wait. You can make it wait by enbling SO_LINGER, I think. Have
> you cross-checked the behaviour of Linux or another stack?

When enabling linger (and adding shutdown), I get the page fully loaded.

It appears to be a wrong expectation of my side once again, write() seems to
be blocking untill all data was queued, instead of sent.



--
Sent from: http://lwip.100.n7.nabble.com/lwip-users-f3.html



reply via email to

[Prev in Thread] Current Thread [Next in Thread]