HTTP Anti-Virus Proxy
http://havp.hege.li/forum/

Resource temporarily unavailable > disable-locking
http://havp.hege.li/forum/viewtopic.php?f=3&t=256
Page 1 of 1

Author:  pitchoune [ 29 Jun 2007 11:38 ]
Post subject:  Resource temporarily unavailable > disable-locking

Greetings, (sorry for my language, i'm french)

I use Havp 0.93 on my company and i have any problem, on Slackware.

But, i have tried to use Havp in my home (with the same Linux distribution) and i have a problem while the run of Havp :

# /etc/rc.d/rc.havp start
Starting HAVP ...
Starting HAVP Version: 0.86
Testfile fcntl() failed: Resource temporarily unavailable
Testfile fcntl() failed: Resource temporarily unavailable
Testfile fcntl() failed: Resource temporarily unavailable
Testfile fcntl() failed: Resource temporarily unavailable
Too many tries - Exiting..

my compile is :
# ./configure --prefix=/usr/local/havp

Now ...
i have success to resolv my problem but i don't understand why ...

i compile now Havp with :
# ./configure --prefix=/usr/local/havp --disable-locking

And this is the result :
# /etc/rc.d/rc.havp start
Starting HAVP ...
Starting HAVP Version: 0.86
Mandatory locking disabled! KEEPBACK settings not used!

Now, it's OK on the log and with the Squid.

what is the consequence of this option : disable-locking ?
on the stability and security ?

And Slackware is a distribution Linux, not a BSD ...

my line on the fstab :
tmpfs /var/tmp/havp tmpfs auto,size=100M,mand,nosuid,noexec,nodev 0 0

Thanks xoxo

~ Pitchoune ~

Author:  hege [ 29 Jun 2007 13:31 ]
Post subject: 

As the documentation says, using tmpfs may have that problem. Use a normal partition.

Disabling locking does exactly what it says. KEEPBACKBUFFER is not used, so you have to wait until HAVP receives the whole file (up to MAXSCANSIZE) and only then it starts sending it to you. So for big files it takes longer for browser to start receiving it.

Page 1 of 1 All times are UTC + 2 hours [ DST ]
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/