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 <[email protected]>
---
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 <[email protected]>
Gerrit-Reviewer: Doron Fediuck <[email protected]>
Gerrit-Reviewer: Jiří Moskovčák <[email protected]>
Gerrit-Reviewer: Martin Sivák <[email protected]>
Gerrit-Reviewer: Nir Soffer <[email protected]>
Gerrit-Reviewer: Noam Slomianko <[email protected]>
Gerrit-Reviewer: [email protected]
Gerrit-Reviewer: oVirt Jenkins CI Server
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to