Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re: Re: Re: Re: Re: CGI-Attachment with many \0's

by eXile (Priest)
on May 11, 2004 at 15:25 UTC ( #352478=note: print w/replies, xml ) Need Help??

in reply to Re: Re: Re: Re: CGI-Attachment with many \0's
in thread CGI-Attachment with many \0's

Have you tried the $|=1?

I suspect this has got something todo with the timing of events (are these 2 machines different hardware or do they have a different workload?). The webserver delivery might be done at a time where the archiving/tempfile-creation is not totally finished. I don't know your code and modules you are using, so this is only a guess.

In that case you might also try, as a debugging tool, to add some 'sleep'-commands inbetween the tempfile-creation/archive-creation and delivery via the webserver, and see if that changes the behaviour.

Maybe you could also post the relevant piece of your code, fresh eyes can help a lot.

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: Re: CGI-Attachment with many \0's
by stefan k (Curate) on May 13, 2004 at 09:24 UTC
    That's it!! Of course I had the $|++ in my code, but that was only for STDDOUT and not for the tempfiles. Now I switched to doing it all in memory and not using any tempfiles at all and it all works fine.


    Thanks, man!

    Regards... Stefan
    you begin bashing the string with a +42 regexp of confusion

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://352478]
[atcroft]: Is there an example somewhere of a way to order nodes when using Tree::DAG_Node?

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2018-04-21 00:46 GMT
Find Nodes?
    Voting Booth?