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(a)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(a)redhat.com>
Gerrit-Reviewer: Doron Fediuck <dfediuck(a)redhat.com>
Gerrit-Reviewer: Jiří Moskovčák <jmoskovc(a)redhat.com>
Gerrit-Reviewer: Martin Sivák <msivak(a)redhat.com>
Gerrit-Reviewer: Nir Soffer <nsoffer(a)redhat.com>
Gerrit-Reviewer: Noam Slomianko <nslomian(a)redhat.com>
Gerrit-Reviewer: automation(a)ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server