- From: Steven D. Gray <steven_gray@rocketmail.com>
- Date: Tue, 7 Dec 1999 21:28:40 -0800 (PST)
- To: www-lib@w3.org
I believe I have found the answer to my own question, but was wondering if the libwww gurus have any additional information. After analyzing the log file of a POST, I noticed this entry: "Uploading... Holding 0088F220 for 2000 ms using time 00891D30" Hmm. A two second timer... As in my initial email, it seemed like my programs were pausing for two seconds. After a quick search, I found the above trace message in HTTP.c. The 2000 ms delay is hard-coded via this code: /* How long to wait before writing the body in PUT and POST requests */ #define DEFAULT_FIRST_WRITE_DELAY 2000 #define DEFAULT_SECOND_WRITE_DELAY 3000 #define DEFAULT_REPEAT_WRITE 30 So, the two second delay I was experiencing is hard-coded directly into libwww. My question to the gurus is why? What is this 2000 ms delay used for? Is it critical? Naturally, to solve my problem, I experimented with values as low as 20. My program now executes very quickly, as desired. But will there be side-effects as a result of my tinkering? I would appreciate hearing from anyone with some insight into the above "magic" constants. --Steven Gray --- "Steven D. Gray" <steven_gray@rocketmail.com> wrote: > Running either the postform.c sample or my own modified version takes > at least 2 seconds on my Windows NT machine after the event loop is > started and before the terminate_handler() is called with the POST > result. > > The 2 second delay always occurs after a "Read Socket. WOULD BLOCK fd > nnn" trace message and no other trace messages are emitted until > after > the delay. > > Am I doing something wrong? The POST and its response are tiny and > run > against an unburdened web server on my LAN. Internet Explorer and > Netscape Navigator on my machine perform this POST and display the > response instantaneously. I can't see why libwww wouldn't be the > same. > > Any suggestions? Thanks in advance. > > --Steven Gray > > __________________________________________________ > Do You Yahoo!? > Thousands of Stores. Millions of Products. All in one place. > Yahoo! Shopping: http://shopping.yahoo.com > > __________________________________________________ Do You Yahoo!? Thousands of Stores. Millions of Products. All in one place. Yahoo! Shopping: http://shopping.yahoo.com
Received on Wednesday, 8 December 1999 00:28:46 UTC