Hi William, > I have recently discovered a problem with McAfee Security Center that > interferes with HttpClient. When downloading a file from a web server, > it appears that HTTPClient is downloading the entire request while the > executeMethod() call is in progress, rather than quickly establishing a > connection and returning an InputStream from getResponseBodyAsStream.
"Appears" is the correct term. HttpClient.executeMethod reads the response header (status line and header lines), then returns and lets the application decide on how to retrieve the entity. > So I'm hoping someone knows some alternatives! Things I tried with > HTTPClient were setting the socket receive buffers to a small size and > turning on the tcp.nodelay flag, neither of which had any effect. It's not HttpClient that's misbehaving. If McAfee decides that it wants to have a look at everything fetched from a port 80, and downloads the whole response in order to scan the contents, then HttpClient can do nothing about it. Virus scanners plug in somewhere on the operating system level when sockets are openend. That's not within the control of HttpClient. Maybe McAfee can be switched to a streaming mode? > In the interests of making this a useful hit in the archives, here's the > tester script that demonstrates the bug: Thanks! cheers, Roland --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
