brummett / Devel-hdb

A graphical Perl debugger implemented as a web service
31 stars 9 forks source link

Child process listen socket tries to use original port + 1 #102

Closed brummett closed 8 years ago

brummett commented 8 years ago

After a fork() the child process tries to open it's own listen socket by bumping the parent process's port up by 1. It uses a window of 20 to keep trying to find an open one.

If it can't, it gives up and lets the system pick one for us.

This fixes #101

kablamo commented 8 years ago

Seems to work. Thanks!