Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lb: backend connections hang in TIME_WAIT state after closing #62

Closed
vdmit11 opened this issue Feb 25, 2015 · 2 comments
Closed

lb: backend connections hang in TIME_WAIT state after closing #62

vdmit11 opened this issue Feb 25, 2015 · 2 comments
Assignees
Labels
Milestone

Comments

@vdmit11
Copy link
Contributor

vdmit11 commented Feb 25, 2015

Scenario:

  1. start a backend server (e.g. nc -lp 8080)
  2. start Tempesta FW
  3. wait until the connection is established
  4. stop the backend server
  5. wait for fin_timeout (/proc/sys/net/ipv4/tcp_fin_timeout)
  6. check that the TCP connection is released (netstat -an | grep TIME_WAIT)

Got:
tcp 0 0 127.0.0.1:23112 127.0.0.1:8080 TIME_WAIT
The connection TCP hangs in the TIME_WAIT state even when the tcp_fin_timeout is expired.

Expected:
The closed TCP connection should be released immediately without handing in the TIME_WAIT state.
Or at least, it should be released after tcp_fin_timeout.

The TIME_WAIT means that either FIN is not received or it is not handled correclty.
Since we run everything locally, the FIN is likely received, so likely it is something wrong with FIN handling.

@vdmit11 vdmit11 added the bug label Feb 25, 2015
@vdmit11 vdmit11 changed the title backend connections hang in TIME_WAIT state after closing lb: backend connections hang in TIME_WAIT state after closing Mar 1, 2015
@krizhanovsky
Copy link
Contributor

Reassign back to Dmitry - need to recheck the issue when #46 is fixed.

@krizhanovsky krizhanovsky assigned vdmit11 and unassigned krizhanovsky Mar 10, 2015
@krizhanovsky krizhanovsky added this to the 0.3.0 Proxy Filter milestone Mar 15, 2015
@krizhanovsky krizhanovsky modified the milestones: 0.5.0 SSL, Stable, 0.3.0 Proxy Filter May 4, 2015
@krizhanovsky krizhanovsky self-assigned this May 4, 2015
@keshonok
Copy link
Contributor

It's been a long time and lots of code changes had been made.
Unable to reproduce now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants