Skip to content

Conversation

@lanthora
Copy link
Contributor

setThreadName in WebSocket::run will overwrite the previously set Srv::ws:, and getUrl is empty at this time, resulting in an empty thread name. For the client, 16 characters are not enough to represent very valid information in Linux. So delete setThreadName in WebSocket::run

@bsergean
Copy link
Contributor

bsergean commented Aug 1, 2023

16 chars is not a ton but is useful still, maybe there could be an option to disable this, and we would default it to false to keep the old behavior.

@lanthora
Copy link
Contributor Author

lanthora commented Aug 2, 2023

@bsergean Fix the problem that the server thread name is empty, and keep the old behavior. Add option to disable automatic update of thread name.

@bsergean bsergean merged commit a701963 into machinezone:master Aug 2, 2023
@bsergean
Copy link
Contributor

bsergean commented Aug 2, 2023

thanks !

@lanthora lanthora deleted the fix-server-empty-thread-name branch March 8, 2024 09:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants