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

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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2014-07-12 09:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (239 votes), past polls