in reply to Re^2: Bidirectional Client/Server - to fork or not to fork?
in thread Bidirectional Client/Server - to fork or not to fork?
BrowserUk, thank you for jump starting my critical thinking! I see what I did wrong now thanks to you!
When you pointed out about how I accept only one connection into an endless loop it made me realize what I did wrong so I changed the following and, from what I can tell so far, it appears to be working so thank you for your criticisms!!!!
and now it works for every request I tried so far! Thank you BrowserUk!# I ended up changing this my $client = $sock->accept(); # and this while() { while ($client) { . . . } # to this my $client; # and this while() { while ($client = $sock->accept) { . . . }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Bidirectional Client/Server - to fork or not to fork?
by BrowserUk (Patriarch) on Dec 08, 2015 at 15:52 UTC |