Commit ef210bab authored by Ulysse Beaugnon's avatar Ulysse Beaugnon

move the fix to readme since the bug was fixed in a newer verision of python

parent 10993ed1
...@@ -211,3 +211,22 @@ OPTIONS : VIFIBNET.PY ...@@ -211,3 +211,22 @@ OPTIONS : VIFIBNET.PY
while "verbose 3" will) while "verbose 3" will)
You can give a file ( with the @ prefix ) as an argument within a You can give a file ( with the @ prefix ) as an argument within a
file file
If you are using a version of python < 2.7.3-2, then you should include this at
the beggining of registry.py
--------------------------------------------------------------------------------
# Fix for librpcxml to avoid doing reverse dns on each request
# it was causing a 10s delay on each request when no reverse DNS was avalaible
# for tis IP
import BaseHTTPServer
def not_insane_address_string(self):
host, port = self.client_address[:2]
return '%s (reverse DNS disabled)' % host # used to call: socket.getfqdn(host)
BaseHTTPServer.BaseHTTPRequestHandler.address_string = not_insane_address_string
--------------------------------------------------------------------------------
\ No newline at end of file
...@@ -5,20 +5,6 @@ from email.mime.text import MIMEText ...@@ -5,20 +5,6 @@ from email.mime.text import MIMEText
from OpenSSL import crypto from OpenSSL import crypto
import utils import utils
# Fix for librpcxml to avoid doing reverse dns on each request
# it was causing a 5-10s delay on each request when no reverse DNS was avalaible
# for tis IP
import BaseHTTPServer
def not_insane_address_string(self):
host, port = self.client_address[:2]
return '%s (reverse DNS disabled)' % host # used to call: socket.getfqdn(host)
BaseHTTPServer.BaseHTTPRequestHandler.address_string = not_insane_address_string
# end of the fix
# To generate server ca and key with serial for 2001:db8:42::/48 # To generate server ca and key with serial for 2001:db8:42::/48
# openssl req -nodes -new -x509 -key ca.key -set_serial 0x120010db80042 -days 365 -out ca.crt # openssl req -nodes -new -x509 -key ca.key -set_serial 0x120010db80042 -days 365 -out ca.crt
......
...@@ -3,7 +3,8 @@ import plib, utils, db ...@@ -3,7 +3,8 @@ import plib, utils, db
log = None log = None
smooth = 0.3 # this is used to smooth the traffic sampling. Lower value smooth = 0.3 # this is used to smooth the traffic sampling. Lower value
# mean more smooth # mean more smooth
# Be carfull the refresh interval should let the routes be established # Be carfull the refresh interval should let the routes be established
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment