HTTP Anti-Virus Proxy http://havp.hege.li/forum/ |
|
FreeBSD HAVP does not download files > 1 MB http://havp.hege.li/forum/viewtopic.php?f=3&t=133 |
Page 1 of 1 |
Author: | raj2569 [ 13 Jun 2006 19:01 ] |
Post subject: | FreeBSD HAVP does not download files > 1 MB |
Hi, I am testing HAVP package with FreeBSD and having a problem. It cannot download any files greater than 1 MB. The wget output is as follows: Code: raj@swathi:~$ wget http://ns2.com/raj/test.bin -O /dev/null --21:20:13-- http://ns2.com/raj/test.bin => `/dev/null' Resolving ns2.com... 202.88.238.10 Connecting to ns2.com[202.88.238.10]:80... connected. HTTP request sent, awaiting response... 200 OK Length: 1,048,576 [application/octet-stream] 0% [ ] 0 --.--K/s 21:20:43 (0.00 B/s) - Connection closed at byte 0. Retrying. --21:20:44-- http://ns2.com/raj/test.bin The HAVP cache shows may files with the same file size: Code: root@beastie:~# ls -l /var/tmp/havp/ | grep 1048576 -rw-r----- 1 havp havp 1048576 Jun 13 11:23 havp-RRllHC -rw-r----- 1 havp havp 1048576 Jun 13 11:24 havp-SRllHC -rw-r----- 1 havp havp 1048576 Jun 13 10:57 havp-qnmOvF -rw-r----- 1 havp havp 1048576 Jun 13 10:58 havp-vnmOvF -rw-r----- 1 havp havp 1048576 Jun 13 10:57 havp-wnmOvF So it seems files are getting downloaded. My condig file is: Code: USER havp
GROUP havp DISPLAYINITIALMESSAGES false TRANSPARENT true RANGE true ENABLECLAMLIB true CLAMDBDIR /var/db/clamav/ ENABLECLAMD false ENABLEFPROT false ENABLEAVG false ENABLEAVESERVER false ENABLESOPHIE false ENABLETROPHIE false ENABLENOD32 false ENABLEAVAST false files about 900 kb gets downloaded. Any ideas.... raj |
Author: | hege [ 13 Jun 2006 20:57 ] |
Post subject: | |
I tested with FreeBSD 5.4, and your config worked fine for me. I assume the code used is official havp-0.80? Cheers, Henrik |
Author: | hege [ 13 Jun 2006 21:25 ] |
Post subject: | |
Ok, I tested your package on FreeBSD 6.0. It works fine. So it most likely is something with your server. Are your shell limits unlimited ("limit" command)? Are you sure your transparent filtering is set up correctly? I can't think of anything else right now.. Cheers, Henrik |
Author: | raj2569 [ 14 Jun 2006 17:10 ] |
Post subject: | |
Yes, I am using the release version of 0.80. Did some more debugging, and found that the problem is at string character = TransferData->substr(0,1); in proxyhandler.cpp. The execution does not get past that statement. My 1 MB limit seems to be the data downloaded in 30 secs. I tried to change the trickling time to 5 seconds the download size was about 200kb. I can do some debugging if required if you can guide me. raj |
Author: | hege [ 14 Jun 2006 18:41 ] |
Post subject: | |
D'oh.. embarassing bug. Simply insert this before the line you mentioned: TransferData = BodyQueue.begin(); string character.. HAVP 0.81 coming up.. Cheers, Henrik |
Author: | raj2569 [ 14 Jun 2006 19:41 ] |
Post subject: | |
Thanks a lot!! It works now!! raj |
Page 1 of 1 | All times are UTC + 2 hours [ DST ] |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |