TCP Nagle algorithm default

Just starting out? Need help? Post your questions and find answers here.
technopol
User
User
Posts: 27
Joined: Thu Mar 24, 2011 11:00 pm

TCP Nagle algorithm default

Post by technopol »

Is TCP Nagle algorithm enabled by default?
User avatar
idle
Always Here
Always Here
Posts: 5926
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: TCP Nagle algorithm default

Post 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   

technopol
User
User
Posts: 27
Joined: Thu Mar 24, 2011 11:00 pm

Re: TCP Nagle algorithm default

Post 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!
Post Reply