Forum Discussion

keven_Wang_1124's avatar
keven_Wang_1124
Icon for Nimbostratus rankNimbostratus
Feb 27, 2006

Will BigIP automaticly close TCP session after a HTTP request

Hi all,

 

 

I write a iRules and find that when a client sends a HTTP request to BigIP, after BigIP sends response, the status of client is CLISE_WAIT and client receives a "FIN ACK" message (I never close TCP session at client side).Dose it mesn that BigIP will close the TCP session automaticly after it send response? Thanks!
  • Colin_Walker_12's avatar
    Colin_Walker_12
    Historic F5 Account
    Yes, that's the default behavior of BIG-IP in general, not just via iRules.

     

     

    After the response has been sent, and the system thinks the transmission is complete, it will close the connection.

     

     

    -Colin
  • drteeth_127330's avatar
    drteeth_127330
    Historic F5 Account
    Actually, the longer answer is that it depends. If the client request is HTTP/1.0 and includes a Connection: Keep-Alive header, then BIG-IP will not close the connection. Similarly, if the client request is HTTP/1.1 and does not include a Connection: close header, then BIG-IP will not close the connection. However, if the server returns a Connection: close response header, then BIG-IP will propagate the close unless OneConnect transformations are configured. There are some subtle issues with certain status codes and early shutdowns, but that's the basic idea.
  • Yes, I have configured oneconnect profile and now the TCP session is not closed.Thanks very much.