Skip to content

Use Int64 for TcpServerDispatcher::totalConnections()#4647

Merged
matejk merged 1 commit intopocoproject:mainfrom
svart-riddare:int64-for-total-connections
Aug 26, 2024
Merged

Use Int64 for TcpServerDispatcher::totalConnections()#4647
matejk merged 1 commit intopocoproject:mainfrom
svart-riddare:int64-for-total-connections

Conversation

@svart-riddare
Copy link
Copy Markdown

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
@banka50
Copy link
Copy Markdown

banka50 commented Nov 2, 2024

Maybe unsigned would be better? @matejk

@svart-riddare
Copy link
Copy Markdown
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

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants