Page 1 of 1

TCP Nagle algorithm default

Posted: Tue Mar 18, 2025 11:53 pm
by technopol
Is TCP Nagle algorithm enabled by default?

Re: TCP Nagle algorithm default

Posted: Wed Mar 19, 2025 1:02 am
by idle
Yes that is the default as far as I'm aware

you can turn it off and on with

Code: Select all

 Procedure TCPNoDelay(ID,set.l=#True)  
    Protected option.l,oplen.l=4 
    If setsockopt_(ID,#IPPROTO_TCP,#TCP_NODELAY,@set,oplen) = 0 
      If getsockopt_(ID,#IPPROTO_TCP,#TCP_NODELAY,@option,@oplen ) = 0 
        ProcedureReturn option    
      EndIf 
      ProcedureReturn -1     
    EndIf  
  EndProcedure   


Re: TCP Nagle algorithm default

Posted: Wed Mar 19, 2025 1:07 am
by technopol
idle wrote: Wed Mar 19, 2025 1:02 am Yes that is the default as far as I'm aware
COOL!!!
¡Muchas gracias!