Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^3: Client-Server app

by NetWallah (Canon)
on Sep 28, 2018 at 16:40 UTC ( #1223239=note: print w/replies, xml ) Need Help??


in reply to Re^2: Client-Server app
in thread Client-Server app

Just checking if you meant Un-Commenting the open/print to append to $output would cause the program to break.

I suspect that multiple threads appending to a file may be giving you trouble.

I suggest starting a separate thread to collect the output, and append it to a file in a single thread.
You can use Thread::Queue to pass data to the collector thread.

                Memory fault   --   brain fried

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2020-10-26 07:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (250 votes). Check out past polls.

    Notices?