Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: Socket programming

by Illuminatus (Curate)
on Nov 12, 2008 at 15:21 UTC ( #723184=note: print w/replies, xml ) Need Help??

in reply to Socket programming

If the client disconnects, then the while loop should terminate, because the next read will be an EOF. This code segment is obviously incomplete, and requires Oracle to execute. What happens if the client sends only a partial, or mal-constructed request? I would either add debug statements, or run in debug mode, to ensure it is hanging where you think it is hanging. Also, be sure to use
use strict; use warnings;
As this can reveal a multitude of sins...

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://723184]
[Discipulus]: good morning nuns and monks, even if rainy

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2018-03-19 07:58 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (236 votes). Check out past polls.