W3C home > Mailing lists > Public > www-lib@w3.org > April to June 2004

Stall or Delay on Client Side request

From: Scott Derrick <scott@tnstaafl.net>
Date: Thu, 20 May 2004 15:42:08 -0600
Message-Id: <6.0.3.0.0.20040520152156.03bc5d20@mail.tnstaafl.net>
To: www-lib@w3.org

Hi,

I just started using libwww.   version 5.4

I have a client app that continually sends a GET command to an image 
server.  The server responds by immediately sending back a  jpeg image.

This works fine in a java app running in a browser.  Very regular refresh 
of the image. No delays or stalls.

In my application that is using wwwlib, the requests stalls or delays about 
every minute or so for a couple seconds?   The delay is always 2.8 seconds.

The request is a 
GET   command   http://ip_address/support/theimage.jpg  which returns the 
current image that is updated at 25 images per second.

The loop in the app is very simple

***start loop

chunk = HTLoadToChunk(http://...., request);

HTEventList_loop(request);

buffer = HTChunk_data(chunk);

HTChunk_delete(chunk);

****end loop

I have set the body write delay to 21, 50

I've looked for some other delay setting or garbage collection setting but 
can't find any??

I'm sure I'm missing something really simple?

Scott

"Those who sacrifice freedom to get security, deserve neither."
- Benjamin Franklin
Received on Thursday, 20 May 2004 17:53:29 GMT

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