|Subject:||Re: [libmicrohttpd] Require info on setting TCP_NODELAY for MHD|
|Date:||Wed, 21 Nov 2018 21:07:06 +0530|
14:38:14.743832 setsockopt(13, SOL_TCP, TCP_NODELAY, , 4) = 0
14:38:14.743908 setsockopt(13, SOL_TCP, TCP_CORK, , 4) = 0
14:38:14.743949 sendto(13, "HTTP/1.1 200 OK\r\nConnection: Kee"..., 162, MSG_NOSIGNAL, NULL, 0) = 162
14:38:14.744022 setsockopt(13, SOL_TCP, TCP_CORK, , 4) = 0
14:38:14.744189 setsockopt(13, SOL_TCP, TCP_NODELAY, , 4) = 0
14:38:14.744234 setsockopt(13, SOL_TCP, TCP_NODELAY, , 4) = 014:38:14.744286 setsockopt(13, SOL_TCP, TCP_CORK, , 4) = 0
On 11/9/18 5:44 PM, Badari Prasad wrote:
> I was going through old mailist archives, found one thread on
> : https://lists.gnu.org/archive/html/libmicrohttpd/2015-11/msg00077.html
> But couldn't know if the option provided is it at compile time flag or
> runtime flag per connection basis.
> Kindly let me know the information on TCP_NODELAY option at MHD.
To the best of my knowledge (i.e. unless there is a bug), TCP_NODELAY
should be set/unset by MHD automatically whenever it makes sense to do
so. Your application doesn't need to do anything here.
If you find/suspect that corking is inappropriately used, please send a
packet trace and maybe a bit of explanation as to how your code works
(in particular, which platform you use and which threading mode is in use).
|[Prev in Thread]||Current Thread||[Next in Thread]|