tcp keepalive - How long can a TCP connection stay open? -


consider such scenario, there client-a , server-b. server-b has tcp keepalive disabled. , server-b not have application logic check whether tcp connection open. client-a establishes tcp connection server-b. there no data transfer between client-a , server-b afterward. in such case, server ever close idle connection? or server have tcp connection stay open forever.

after reading longest open tcp connection?, guess such tcp connection stay open forever. guess correct?

there no limit in tcp connection itself. client , server in theory stay connected years without exchanging data , without packet flow. problems caused middleboxes nat router or firewalls keep state , expire state after inactivity. new packets sent within connection cannot delivered because no associated state exists anymore in middlebox.


Comments

Popular posts from this blog

PHP and MySQL WP -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

go - golang pprof for c library code -