Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
what is the maximum capacity that indy TCP can hold ?
#5
(12-21-2018, 04:01 PM)bluewwol Wrote: Fix windows socket configurations (refer https://docs.microsoft.com/en-us/previou...echnet.10))
        One of the ways is to increase the dynamic port range. The max by default is 5000. You can set this up to 65534. 
        HKLM\System\CurrentControlSet\Services\Tcpip\Parameters\MaxUserPort is the key to use.

That only applies to ephemeral ports, which are not used on the server side. You would use this fix on the client side if it were making a lot of outbound connections and was running out of available ports.

(12-21-2018, 04:01 PM)bluewwol Wrote: The second thing you can do is, once the connection does get into an TIME_WAIT state, you can reduce the time it is in that state. 
        Default is 4 minutes, but you can set this to 30 seconds. (30 is the minimum value)
        HKLM\System\CurrentControlSet\Services\Tcpip\Parameters\TCPTimedWaitDelay is the key to use. 

Note that on the server side, a socket connection goes into TIME_WAIT only if the server is the one closing the connection. If the client closes the connection, TIME_WAIT is not used. See the state diagram in the Winsock Programmer’s FAQ.

Reply


Messages In This Thread
RE: what is the maximum capacity that indy TCP can hold ? - by rlebeau - 12-21-2018, 05:23 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)