[AWS] Clean Termination
Ian Broster
ian at broster.co.uk
Mon Sep 20 18:33:01 CEST 2004
> There is no code, exept for the signal-state change in the semaphore. The
> shutdown is done by the main task after the semaphore waiting.
I cannot get this to work.
The attached program does not return a response to
the browser, the socket is closed immediately after
the request.
This is with gnatpro and gnat3.15, and a fairly recent AWS CVS.
Note the delay 0.1 in service. If this delay is not there
then the program is inconsistent, sometimes returning
a string. With the delay, it fails. The delay
is less than the 0.5 that the shutdown seems to take.
I also note that removing the put_line before shutdown
also makes the program fail more frequently.
It seems that shutdown does not wait for the connection
to close; there is a race condition?
ian
--
Dr Ian Broster
-------------- next part --------------
A non-text attachment was scrubbed...
Name: testaws.adb
Type: application/octet-stream
Size: 1322 bytes
Desc: not available
Url : /pipermail/aws/attachments/20040920/da76de21/testaws.obj
More information about the AWS
mailing list