Skip to content

Conversation

@shinrich
Copy link
Member

This is an improvement on the original fix for TS-4187. The original fix would in some case over count the open sockets. It seems sometimes, the connection would have already been closed or rather be scheduled to be closed multiple times. We would increase the currently_open count for every scheduled close, but only decrease it for the actual free.

I've changed things around to decrease in the do_io_close if it is called with a valid file descriptor.

This seems to better keep the currently_open count in sync with the established socket count on the systems. However, both grow until we run out of memory on our production boxes. But that is being tracked by TS-4330

@jpeach
Copy link
Contributor

jpeach commented Apr 24, 2016

This looks good to me. I think it should be reasonable to construct a simple integration test for this?

@shinrich
Copy link
Member Author

shinrich commented May 3, 2016

I think you could do a TSQA test. Configure with global pools. Run a set of requests through. Wait a while for things to drain out. Verify that the current_open connection count is 0 or really close to 0. I don't see how to do an integration test that would exercise this case.

@asfgit asfgit closed this in 6f11192 May 3, 2016
PSUdaemon pushed a commit that referenced this pull request May 20, 2016
…of sockets open. This closes #583.

(cherry picked from commit 6f11192)
brbzull0 pushed a commit to brbzull0/trafficserver that referenced this pull request Oct 6, 2021
brbzull0 pushed a commit to brbzull0/trafficserver that referenced this pull request Nov 8, 2021
brbzull0 pushed a commit to brbzull0/trafficserver that referenced this pull request Nov 9, 2021
brbzull0 pushed a commit to brbzull0/trafficserver that referenced this pull request Nov 9, 2021
brbzull0 pushed a commit to brbzull0/trafficserver that referenced this pull request Jan 24, 2022
ywkaras pushed a commit to ywkaras/trafficserver that referenced this pull request Jul 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants