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

Connection count in statistics keeps on getting higher when connections fail (or connections get leaked) #8

Open
StrongestNumber9 opened this issue Jul 2, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@StrongestNumber9
Copy link
Contributor

Describe the bug

02.07.2024 15:03:44.124 [INFO] [com.teragrep.cfe_35.router.Router] [metrics-logger-reporter-1-thread-1] type=COUNTER, name=connections, count=5700
02.07.2024 15:04:16.154 [INFO] [com.teragrep.cfe_35.router.Router] [metrics-logger-reporter-1-thread-1] type=COUNTER, name=connections, count=6300

Expected behavior

They go back down on disconnection

How to reproduce

Just keep on spamming new connections that fail, tcpflood will send all the messages on first opened connection before the rest have finished connecting -> trying to close them before they were really even open
while true; do tcpflood -t 127.0.0.1 -T relp-plain -p 4600 -m 123 -M "<14>1 2020-05-15T13:24:03.603Z performance-test-host performance-test-tag - - - hello" -c 10 -Y; done

Software version

https://github.com/kortemik/cfe_35/tree/to-9

Additional context

Maybe related #5

@StrongestNumber9 StrongestNumber9 added the bug Something isn't working label Jul 2, 2024
@StrongestNumber9
Copy link
Contributor Author

The stats might be right as this might also be due to leaked connections that never gets closed, but issue remains

@StrongestNumber9 StrongestNumber9 changed the title Connection count in statistics keeps on getting higher when connections fail Connection count in statistics keeps on getting higher when connections fail (or connections get leaked) Jul 4, 2024
@StrongestNumber9
Copy link
Contributor Author

Starting the server with -DconnectionTimeout=1 -DreadTimeout=1 -DwriteTimeout=1 and spamming will leak connections even with #5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant