Skip to content

Use Int64 for TcpServerDispatcher::totalConnections() #4647

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

Merged
merged 1 commit into from
Aug 26, 2024

Conversation

svart-riddare
Copy link

Value was previously a 32-bit integer, overflowing after 2 billion connections. Seems a lot, but a 1000 connections/second, it's less than a month.

I did not change TchServerDispatcher::refusedConnections(), I do not expect this value to overflow (it if does, well the server is not very useful !).

@matejk matejk added this to the Release 1.14.0 milestone Aug 26, 2024
@matejk matejk merged commit 63bed8c into pocoproject:main Aug 26, 2024
33 checks passed
@banka50
Copy link

banka50 commented Nov 2, 2024

Maybe unsigned would be better? @matejk

@svart-riddare
Copy link
Author

Perhaps; when I make a change to a project which isnt' mine, I tend to make the smallest possible change.

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

Successfully merging this pull request may close these issues.

3 participants