Re: Problems with GET in event loop

On 21-Dec-98 Henrik Frystyk Nielsen wrote:
> 
> 
> olga wrote:
> 
>> I am rewriting my app to use the event loop.
>> For GET I use:
>>          HTLoadToFile(url, request, filename).
>> 
>> The result is:
>>         file is not loaded
>>         cache entry is loaded twice - chunks of file are repeated...
>  
> Could it be that you are starting the same load twice where both loads
> are saving to the same file? 

No.

> What does the trace say? 
^^^^^^^^^^^^^^^^^^^^^^^^^^^


There is part of the trace: Processing request after login and password are
supplied. Cache was empty to start with. (There is some my trace added to w3c
functions.)

Thanks for the help,

Olga.

 

Basic Cookie `Basic ZWFpOmVhaQ=='
Credentials. verified
Net Before.. calling 457bac (request 1002d678, context 0)
URL Tree.... did NOT find `w3c-pep'
Net Before.. calling 448730 (request 1002d678, context 0)
Net Object.. 10036bf0 created with hash 4
Net Object.. starting request 1002d678 (retry=2) with net object 10036bf0
HTTP........ Looking for
`http://kingkong:1080/projects/Demos/fishing_reel/fishing_reel.jt'
HTDoConnect. Looking up `kingkong:1080'
Host info... REUSING CHANNEL 1002b788
Host info... Add Net 10036bf0 (request 1002d678) to pipe, 2 requests made, 1
requests in pipe, 0 pending
HTHost...... No ActivateRequest callback handler registered
Channel..... Semaphore increased to 1 for channel 1002b788
StreamStack. Constructing stream stack for text/x-http to */*
StreamStack. Returning: best_match, best_match->converter
#####################  HTTPEvent: HTRequest_outputStream = 268607416

#####################  HTTPEvent: Going to dump request to local file
HTTee: s1 = 268613536, s2 = 268625256
Tee......... Created stream 1002d160 with resolver 474f40
HTTP........ Dumping request to `w3chttp.out'
HTTP........ Generating HTTP/1.x Request Headers
HTTP........ Generating General Headers
Buffer...... Flushing 1002cee8
Write Socket 242 bytes written to 11
Read Socket. WOULD BLOCK fd 11
Host Event.. READ passed to
`http://kingkong:1080/projects/Demos/fishing_reel/fishing_reel.jt'
Read Socket. 1460 bytes read from socket 11
Read (0% of 1K)
Response.... Created 10036ce8
Host info... New mode is 1 for host 1002dc30
Host info... 1002dc30 already persistent
Net Object.. Persistent connection set ON succeeded


StreamStack. Constructing stream stack for message/rfc822 to */*
StreamStack. Returning: best_match, best_match->converter


Error....... Add   2    Severity: 8     Parameter: `OK' Where: `HTTPNextState'
Host........ passing 17 bytes as consumed to 10048f50
Host........ 1443 bytes remaining 

MIME header. Date: Mon, 21 Dec 1998 19:00:52 GMT
MIME header. Server: Apache/1.3.1 (Unix)
MIME header. Last-Modified: Fri, 12 Jun 1998 20:21:00 GMT
MIME header. ETag: "3c000ac-16d4-35818dac"
MIME header. Accept-Ranges: bytes
MIME header. Content-Length: 5844
MIME header. Keep-Alive: timeout=15, max=99
MIMEParser.. Timeout after 15 secs
MIMEParser.. Max 99 requests pr connection
MIME header. Connection: Keep-Alive
MIMEParser.. HTTP/1.0 Keep Alive ignored
MIME header. Content-Type: application/x-jt
Building.... C-T stack from application/x-jt to */*

StreamStack. Constructing stream stack for application/x-jt to */*
StreamStack. Returning: WWW_SOURCE, Source output
StreamStack. Constructing stream stack for www/cache to */*
StreamStack. Returning: best_match, best_match->converter

Format...... Wkd, 00 Mon 0000 00:00:00 GMT
Time string. Mon, 21 Dec 1998 19:00:52 GMT parsed to 914263252 seconds, or in
local time: Mon Dec 21 12:00:52 1998
Format...... Wkd, 00 Mon 0000 00:00:00 GMT
Time string. Fri, 12 Jun 1998 20:21:00 GMT parsed to 897679260 seconds, or in
local time: Fri Jun 12 14:21:00 1998
Error....... Add  48    Severity: 4     Parameter: `Unspecified'        Where:
`calculate_time'

******* HTMIME: pumpData - creating Tee, me->target == 268607416, cache =
268647224
HTTee: s1 = 268607416, s2 = 268647224Tee......... 
Created stream 10034c10 with resolver 474f40

******* HTMIME: after creating Tee, me->target == 268651536

******* HTMIME: Checking target, me->target == 268651536

Host........ passing 277 bytes as consumed to 10048f50
Host........ 1166 bytes remaining 
Host........ passing 1166 bytes as consumed to 10048f50
Host........ 0 bytes remaining 
Host Event.. READ passed to
`http://kingkong:1080/projects/Demos/fishing_reel/fishing_reel.jt'
Read Socket. 2920 bytes read from socket 11
Read (19% of 6K)
Host........ passing 2920 bytes as consumed to 10048f50
Host........ 0 bytes remaining 
Host Event.. READ passed to
`http://kingkong:1080/projects/Demos/fishing_reel/fishing_reel.jt'
Read Socket. 1758 bytes read from socket 11
Read (69% of 6K)
Host........ passing 1758 bytes as consumed to 10048f50
Host........ 0 bytes remaining 
Done!
Read Socket. Target returns 200
HTTP Clean.. Called with status 200, net 10036bf0
Net Object.. Delete 10036bf0 and call AFTER filters
Host Object. keeping persistent socket 11
Channel..... Delete 1002b788 with semaphore 1
MIME........ FREEING....
Channel..... Semaphore decreased to 0 for channel 1002b788
Host info... Remove 10036bf0 from pipe
Net Object.. Remove object 10036bf0
Net After... calling 4159c8 (request 1002d678, response 10036ce8, status 200,
context 0)

******* GET erminate_callback: Entering number = 1

******* GetFileName:: cached filename = /home/olga/myCache/551/AAAa002NP
******* status is BAD - filesize == 0
Net After... Delete 4159c8
Net After... calling 415510 (request 1002d678, response 10036ce8, status 200,
context 0)

******* GLOBAL terminate_handler: Entering number = 2
******* Status = HT_LOADED =  200
Request..... Delete 1002d678
Net After. Delete All filters
Response.... Delete 10036ce8

******* GetRequestStr: Entering function
******* Exiting GetRequestStr

******* DispatchRequest:  Entering function

******* DispatchRequest:  Exiting function
Host Event.. host 1002dc30 `kingkong' closed connection.
Channel..... Delete 1002b788 with semaphore 0
Socket read. FREEING....
Socket write FREEING....
Net Manager. Decreasing active sockets to 0, 1 persistent sockets
Channel..... Deleted 1002b788, socket 11
Net Manager. 0 active sockets, decreasing persistent sockets to 0
Host info... removed host 1002dc30 as persistent

Received on Monday, 21 December 1998 14:50:07 UTC