HTTP Anti-Virus Proxy

Official HAVP Support Forum
Registration disabled, I'm tired of spambots. E-mail havp@hege.li if you have questions.
HAVP project is pretty much frozen/abandoned at this time anyway.
It is currently 22 Jun 2014 09:53

All times are UTC + 2 hours [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: 13 Jun 2006 19:01 
Offline

Joined: 12 Jun 2006 16:42
Posts: 8
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


Top
 Profile  
 
 Post subject:
PostPosted: 13 Jun 2006 20:57 
Offline
HAVP Developer

Joined: 27 Feb 2006 18:12
Posts: 687
Location: Finland
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


Top
 Profile  
 
 Post subject:
PostPosted: 13 Jun 2006 21:25 
Offline
HAVP Developer

Joined: 27 Feb 2006 18:12
Posts: 687
Location: Finland
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


Top
 Profile  
 
 Post subject:
PostPosted: 14 Jun 2006 17:10 
Offline

Joined: 12 Jun 2006 16:42
Posts: 8
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


Top
 Profile  
 
 Post subject:
PostPosted: 14 Jun 2006 18:41 
Offline
HAVP Developer

Joined: 27 Feb 2006 18:12
Posts: 687
Location: Finland
D'oh.. embarassing bug. :)

Simply insert this before the line you mentioned:

TransferData = BodyQueue.begin();
string character..

HAVP 0.81 coming up..

Cheers,
Henrik


Top
 Profile  
 
 Post subject:
PostPosted: 14 Jun 2006 19:41 
Offline

Joined: 12 Jun 2006 16:42
Posts: 8
Thanks a lot!! It works now!!
:)

raj


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC + 2 hours [ DST ]


Who is online

Users browsing this forum: Yahoo [Bot] and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group