We set TCP_NODELAY on the listening socket and the accepted socket inherits the 
option:

08:44:21 bart:(master)~/dev/libswoc/unit_tests$ sudo strace 
/usr/local/bin/traffic_server  2> /dev/stdout | grep setsockopt
...
setsockopt(67, SOL_TCP, TCP_NODELAY, [1], 4) = 0

-Bryan


> On Oct 20, 2020, at 12:59 PM, vishwas k.n. <[email protected]> wrote:
> 
> Hello All,
> 
> I am trying to verify a socket-option on the socket of a connection towards 
> the client.
> 
> It appears the default value for proxy.config.net.sock_option_flag_in is 0x5
> 
> I ran a strace to trace all the syscalls and set_sockoption calls associated 
> with the traffic_server to verify that TCP_NODELAY socket option is being 
> set. However I don't see it being set. Infact none of the options seem to 
> take effect.
> 
> Is this config working as expected ? or am I looking at the wrong config for 
> setting a socket option on a socket of a connection towards the client side?
> 
> ATS version: 10.0
> 
> thanks,
> -vishwas.
> 

Reply via email to