[GH-ISSUE #63] Check if port is in use #22

Closed
opened 2026-03-04 23:23:48 +03:00 by kerem · 1 comment
Owner

Originally created by @ivanstan on GitHub (Sep 14, 2018).
Original GitHub issue: https://github.com/yswery/PHP-DNS-SERVER/issues/63

I was working on server while in background another instance was started listening on same port (UDP 53). This caused script to finish without showing me any info. It took me a while to discover what was the problem. We should check if port is in user before calling $loop->run() and throw exception.

Originally created by @ivanstan on GitHub (Sep 14, 2018). Original GitHub issue: https://github.com/yswery/PHP-DNS-SERVER/issues/63 I was working on server while in background another instance was started listening on same port (UDP 53). This caused script to finish without showing me any info. It took me a while to discover what was the problem. We should check if port is in user before calling `$loop->run()` and throw exception.
kerem closed this issue 2026-03-04 23:23:49 +03:00
Author
Owner

@samuelwilliams commented on GitHub (Oct 12, 2018):

Diving into React's code, it looks like it should be throwing an error if a port is in use, but it doesn't seem to. But in anycase, think this is something to put on whoever is implementing the project.

<!-- gh-comment-id:429465508 --> @samuelwilliams commented on GitHub (Oct 12, 2018): Diving into React's code, it looks like it should be throwing an error if a port is in use, but it doesn't seem to. But in anycase, think this is something to put on whoever is implementing the project.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/PHP-DNS-SERVER#22
No description provided.