Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: communication between server/client

by almut (Canon)
on Aug 03, 2010 at 16:12 UTC ( #852695=note: print w/ replies, xml ) Need Help??


in reply to communication between server/client

Two common problems with client-server programming are

  • using readline (<$socket>) to read data, but not writing newlines on the other end
  • not having made sure data is actually being sent (without buffering), by either calling IO::Handle's ->autoflush() (once) or ->flush() (after every write operation) on the respective handle

A cursory scan of your code seems to suggest that at least one of those problems is involved.


Comment on Re: communication between server/client
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (13)
As of 2015-07-30 21:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (273 votes), past polls