Closed boris-sinyapkin closed 6 months ago
To reproduce add the proxy to the Telegram. It seems Telegram is flooding the server with "healthcheck" request thus making it unresponsive due to plenty of opened and not closed connections ...
It turned out as we can't limit TCP connections from Tokio side, so need to implement custom limiter.
Lurk leaves connections with FIN_WAIT status. Need to investigate.
It seems https://github.com/boris-sinyapkin/lurk/commit/63e435bb7b68c75c527d89d2d586f83154a535d1 fixed the issue. As this affected error-handling during relay request, server won't send redundant data to client hence the connections will be closed properly.
Lurk started to decline incoming connections with the following error:
It seems some connections isn't closed properly thus newly connected clients can't be served.