Change in ovirt-scheduler-proxy[master]: osschedproxyd: Disable needless and slow dns lookup

msivak at redhat.com msivak at redhat.com
Thu Apr 10 08:50:00 UTC 2014


Martin Sivák has submitted this change and it was merged.

Change subject: osschedproxyd: Disable needless and slow dns lookup
......................................................................


osschedproxyd: Disable needless and slow dns lookup

In Python 2.6, BaseHTTPServer.BaseRequestHandler is invoking
socket.getfqdn() after each request, to log the client fully qualified
hostname. If dns is not configured properly, this cause needless delay
after each request.

This patch overrides address_string to return client address, avoiding
the dns lookup.

Change-Id: Id622cfdc07419c8ad52ad88323b10639288c3668
Signed-off-by: Nir Soffer <nsoffer at redhat.com>
---
M src/ovirtscheduler/oschedproxyd.py
1 file changed, 15 insertions(+), 2 deletions(-)

Approvals:
  Martin Sivák: Verified; Looks good to me, approved



-- 
To view, visit http://gerrit.ovirt.org/24913
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Id622cfdc07419c8ad52ad88323b10639288c3668
Gerrit-PatchSet: 3
Gerrit-Project: ovirt-scheduler-proxy
Gerrit-Branch: master
Gerrit-Owner: Nir Soffer <nsoffer at redhat.com>
Gerrit-Reviewer: Doron Fediuck <dfediuck at redhat.com>
Gerrit-Reviewer: Jiří Moskovčák <jmoskovc at redhat.com>
Gerrit-Reviewer: Martin Sivák <msivak at redhat.com>
Gerrit-Reviewer: Nir Soffer <nsoffer at redhat.com>
Gerrit-Reviewer: Noam Slomianko <nslomian at redhat.com>
Gerrit-Reviewer: automation at ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server



More information about the Engine-commits mailing list