W3C home > Mailing lists > Public > www-lib@w3.org > January to March 2001

HANGS reading response when POST'ing with HTTP/1.0. Only partial response read.

From: Summers, Graham <GSummers@ndsuk.com>
Date: Tue, 27 Feb 2001 08:39:17 -0000
Message-ID: <F128989C2E99D4119C110002A5074098887982@topper.hrow.ndsuk.com>
To: "'www-lib@w3.org'" <www-lib@w3.org>
Now I know I'll be doing something wrong here but I cannot see what it is.
Any help would be greatly appreciated.

I've set the connection mode to HTTP_FORCE_10 and what seems to happen
is that I POST fine, but I only read the first part of the response from the

server.  It seems like once its read something in response it stops looking
for
reads on that connection.  I've tested this with a socket tool and so I
don't think
its the response from IIS (which is attached in case it is).

If I don't set it to HTTP_FORCE_10 it works fine.

As you'll see I've only made a few minor changes to post.c.  Which of these
have I got wrong?


 <<post.c>>  <<multipartpostresponse>> 
Partial trace :
----------------------------------------------------------------------------
--------------------------------------------------------------------

Event Loop.. select returns 1
............ READ : 3
............ WRITE:
............ OOB  :
EventOrder.. execute ordered events
Memory Free. 4000a750
EventList... calling socket 3, request 400086c8 handler 7affa512 type
HTEvent_READ
Host Event.. READ passed to
`http://ndsuk3971/gstest/multipart_form_data_post_receiver.asp'
HTTP/1.1 200 OK
Server: Microsoft-IIS/5.0
Date: Mon, 26 Feb 2001 14:30:50 GMT
Connection: keep-alive
Connection: Keep-Alive
Content-Length: 2765
Content-Type: text/html
Set-Cookie: ASPSESSIONIDQGGGQORU=CKLJPDPCCFJLMHAFBIDHJPBA; path=/
Cache-control: private

<!-- multipart_form_data_post_receiver.asp
-->
<!--
-->
<!-- This software is furnished under a licence and may be used and copied
--Read Socket. 512 bytes read from socket 3
Reading...
Memory Free. 4000a750
Response.... Created 4000a7f0
HTTP........ Mode is FORCE HTTP/1.0
Event....... No more events registered for socket 3
Event....... Reset MaxSock from 3 to 1
Memory Free. 4000a7c8
Memory Free. 4000a780
Event....... Socket 3 unregistered for HTEvent_READ
Event....... Couldn't find socket 3. Can't unregister type HTEvent_WRITE
Channel..... Delete 4000a438 with semaphore 1, status 900
Channel..... Semaphore decreased to 0 for channel 4000a438
Host info... removed host 4000a068 as persistent
Net Object.. Persistent connection set OFF succeeded
HTAnchor.... Clear all header information
StreamStack. Constructing stream stack for message/rfc822 to www/present
Error....... Add   2    Severity: 8     Parameter: `OK' Where:
`HTTPNextState'
MIME header. Server: Microsoft-IIS/5.0
MIME header. Server: Microsoft-IIS/5.0
MIME header. Date: Mon, 26 Feb 2001 14:30:50 GMT
MIME header. Date: Mon, 26 Feb 2001 14:30:50 GMT
MIME header. Connection: keep-alive
MIME header. Connection: keep-alive
Host info... New mode is 0 for host 4000a068
Host info... no room for persistent socket -1
Net Object.. Persistent connection set ON failed
MIMEParser.. HTTP/1.0 Keep Alive
MIME header. Content-Length: 2765
MIME header. Content-Length: 2765
MIME header. Content-Type: text/html
MIME header. Content-Type: text/html
MIME header. Set-Cookie: ASPSESSIONIDQGGGQORU=CKLJPDPCCFJLMHAFBIDHJPBA;
path=/
MIME header. Set-Cookie: ASPSESSIONIDQGGGQORU=CKLJPDPCCFJLMHAFBIDHJPBA;
path=/
MIME header. Cache-control: private
MIME header. Cache-control: private
HTAnchor.... Updating metainformation for 40009150
Building.... C-T stack from text/html to www/present
StreamStack. Constructing stream stack for text/html to www/present
Memory Free. 4000ae10
Memory Free. 4000ae10
Memory Free. 4000aec0
Memory Free. 4000ae70
Save file... Temporaray file `/tmp/multipart_form_data_post_receiver.asp'
Please give name of file to save in: (RETURN for
[/tmp/multipart_form_data_post_receiver.asp]) 
Memory Free. 4000adf8
Memory Free. 4000ae38
Memory Free. 4000ae70
Building.... Content-Decoding stack
Building.... Transfer-Decoding stack
Memory Free. 40008688
Event Loop.. calling select: maxfds is 1
............ READ :
............ WRITE:
............ OOB  :


====================================================
NDS Corporate Headquarters Has Moved From 1 Heathrow Boulevard to : 
One London Road 
Staines 
Middlesex TW18 4EX 
Please note that all phone/fax numbers remain the same 

====================================================
Information contained in this email message is intended only for
use of the individual or entity named above. If the reader of this
message is not the intended recipient, or the employee or agent
responsible to deliver it to the intended recipient, you are hereby
notified that any dissemination, distribution or copying of this
communication is strictly prohibited. If you have received this
communication in error, please immediately notify us by email
to postmaster@ndsuk.com and destroy the original message.




Received on Tuesday, 27 February 2001 03:40:51 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:38 GMT