Crow icon indicating copy to clipboard operation
Crow copied to clipboard

added wait timeout to server start

Open gittiver opened this issue 1 year ago • 5 comments

gittiver avatar Oct 14 '24 14:10 gittiver

I quickly tested it and it worked fine for me :partying_face: The only downside i see is that we still lose the information why it failed

fliiiix avatar Oct 15 '24 06:10 fliiiix

The only downside i see is that we still lose the information why it failed

Isn't that logged?

gittiver avatar Oct 15 '24 09:10 gittiver

hmm, I see, the timeout can have different reasons and in addition the Acceptor and endpoint are created in the constructor of the server. Would make this ticket bigger.

fliiiix avatar Oct 15 '24 12:10 fliiiix

Did you written your answer on purpose as edit on my comment? :laughing:

I mean i think this fix already brings value the way it is now but to fully fix it it probably should log the errors that happen.

fliiiix avatar Oct 18 '24 06:10 fliiiix

Did you written your answer on purpose as edit on my comment? 😆 No, I was in a hurry.

I mean i think this fix already brings value the way it is now but to fully fix it it probably should log the errors that happen. I agree, I was thinking about a separate PR for that to keep changes in this one simple.

gittiver avatar Oct 18 '24 14:10 gittiver

Invalid address strings are now logged, so mission complete. :)

gittiver avatar Nov 25 '24 20:11 gittiver

I found another case :see_no_evil: where if the port is already used we also just see a timeout:

(2024-11-26 08:10:18) [INFO    ] Before wait
(2024-11-26 08:10:21) [INFO    ] After wait
(2024-11-26 08:10:21) [INFO    ] Timeout

But im not sure if we can check for that, and this version is already way better than before :partying_face:

fliiiix avatar Nov 26 '24 09:11 fliiiix

I found another case 🙈 where if the port is already used we also just see a timeout:

(2024-11-26 08:10:18) [INFO    ] Before wait
(2024-11-26 08:10:21) [INFO    ] After wait
(2024-11-26 08:10:21) [INFO    ] Timeout

But im not sure if we can check for that, and this version is already way better than before 🥳

This has to be handled inside of the server, I would propose to handle in a different issue - or maybe there are already some for this.

gittiver avatar Nov 26 '24 09:11 gittiver