Forum Discussion
BIG-IP : simplest way to ensure request is made on new tcp connection
In order to talk to the big, curl opens a socket, binds it to a local tcp port and IP, and makes a connection to the bigIP.
Before curl exits, it closes its end of the connection, which then causes the other end of the TCP connection to close also as part of the FIN/FIN-ACK/ACK sequence). If curl doesn't close the connection before it exits (i.e. it dies for some reason, core dump, killed, etc), then the OS cleans up everything that the application opened or allocated (There's exceptions, but the important thing is that sockets aren't one of them. The OS (And it's a bit dependent on OS) does this by either sending a RST, or running through the FIN sequence itself to the BigIP. That causes the BigIP to close the client connection.
Now as for the server side connection, that depends on whether one-connect it enabled or not. If you don't have one-connect enabled, then the server side connection will also be closed. if you have one-connect enabled on the OS, then it's likely the server side connection will stay open... But you can affect that with an iRule as well... Short answer there is don't put one-connect on the VS of course...
H
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com