#3442: High latency with tracd
------------------------------+---------------------------------------------
 Reporter:  [EMAIL PROTECTED]  |       Owner:  jonas
     Type:  defect            |      Status:  new  
 Priority:  normal            |   Milestone:       
Component:  tracd             |     Version:  0.9.6
 Severity:  normal            |    Keywords:       
------------------------------+---------------------------------------------
 In my network environment there is a local DNS server that can't resolve
 every IP number in the proper fqdn.

 The TracHTTPRequestHandler subclass BaseHTTPRequestHandler that, by
 default, tries to log the fqdn of a client for every request.

 This is the cause of a '''long''' latency between every request to the
 trac server.

 For a simple workaround I've added this method to TracHTTPRequestHandler
 {{{
 #!python
     def address_string(self):
             """Return the client address formatted for logging.

             This version looks up the full hostname using gethostbyaddr(),
             and tries to find a name that contains at least one dot.

             """

             host, port = self.client_address[:2]
             return host
 }}}

 Obviously this logs the client ip address instead of the fqdn.

-- 
Ticket URL: <http://trac.edgewall.org/ticket/3442>
The Trac Project <http://trac.edgewall.com/>
_______________________________________________
Trac-Tickets mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac-tickets

Reply via email to