Bug #78771 | Router running out of resources; not closing socket properly | ||
---|---|---|---|
Submitted: | 9 Oct 2015 7:22 | Modified: | 20 Oct 2015 2:21 |
Reporter: | Geert Vanderkelen | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Router | Severity: | S2 (Serious) |
Version: | 2.0.1 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[9 Oct 2015 7:22]
Geert Vanderkelen
[9 Oct 2015 15:34]
Vitor Oliveira
Even with close after the sockets remain lingering for a while, which for a high number of connections and re-connections is still a problem, as sockets stay in TIMED_WAIT state and cannot be used for while. The suggestion is to use SO_LINGER before the close with a timeout of 0 so that sockets are immediately available.
[20 Oct 2015 2:21]
Philip Olson
Posted by developer: Fixed as of the upcoming MySQL Router 2.0.2 release, and here's the changelog entry: Socket connections are now properly closed after calling shutdown(), as to reclaim resources. Thank you for the bug report.