yswery / PHP-DNS-SERVER

An Authoritative DNS Server written purely in PHP
MIT License
287 stars 72 forks source link

Check if port is in use #63

Closed ivanstan closed 6 years ago

ivanstan commented 6 years ago

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.

samuelwilliams commented 6 years ago

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.