Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

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...

Comment on Re: Socket programming
Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://723184]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (11)
As of 2015-10-07 17:28 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (194 votes), past polls