in reply to Socket gripes
you are saying to Perl to read in the whole "file", so of course it won't return until the socket is closed. Your protocol needs to have some way to tell when your server has finished talking. There are lots of ways to do this, you just have to make sure that your data won't accidentally trigger that condition.my @answer = <$socket>;
Common ways are to:
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Socket gripes
by John M. Dlugosz (Monsignor) on Oct 25, 2002 at 18:44 UTC | |
by Thelonius (Priest) on Oct 28, 2002 at 14:47 UTC | |
|
Re: Re: Socket gripes
by frankus (Priest) on Oct 25, 2002 at 15:50 UTC |