Edgewall Software
Modify

Opened 18 years ago

Closed 18 years ago

#3442 closed defect (duplicate)

High latency with tracd

Reported by: asdrubale@… Owned by: Jonas Borgström
Priority: normal Milestone:
Component: web frontend/tracd Version: 0.9.6
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

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

    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.

Attachments (0)

Change History (1)

comment:1 by Christian Boos, 18 years ago

Resolution: duplicate
Status: newclosed

See #3481 (fixed in r4161 and ported to [0.10.1] in r4164).

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.