Re: Authenticating large, dynamic posts
steve.kilbane@ind.alstom.com
Wed, 2 Jun 1999 18:30:59 +0100
On 01/06/99 17:33:58 Steve KILBANE wrote:
>This worked, once, but appears to be nailed by a race condition.
[...]
> Next call to read() dies. I can't
>see anywhere where a read returns eof. Presumably, this is a bug somewhere, but
>I don't know if it's in my 5.004_01 Perl, the Windows NT 4.0 TCP stack, or
>IO::Handle. I suspect a big upgrade is needed. :-(
Still looks like a race condition. I've upgraded Perl, with no joy. I've got
more debugging in place, and I'm cheating now: in the response section of
http.pm, I've got two adjacent calls to $socket->sysread(). The first reads all
the available data, while the second sometimes gets zero bytes, and sometimes
gets Invalid Argument. A sleep() between them guarantees the latter.
Next option is to install some NT Service Packs. sigh.
steve