Skip to content
Snippets Groups Projects
Commit 50a3f19f authored by Nat Goodspeed's avatar Nat Goodspeed
Browse files

DRTVWR-418: Overriding shutdown_request() wasn't the issue. Remove.

parent 7b3ff541
No related branches found
No related tags found
No related merge requests found
...@@ -283,16 +283,10 @@ class Server(HTTPServer): ...@@ -283,16 +283,10 @@ class Server(HTTPServer):
# default behavior which *shouldn't* cause the program to return # default behavior which *shouldn't* cause the program to return
# a failure status. # a failure status.
def handle_error(self, request, client_address): def handle_error(self, request, client_address):
print >>sys.stderr, '-'*40 print '-'*40
print >>sys.stderr, 'Ignoring exception during processing of request from', client_address print 'Ignoring exception during processing of request from',
print >>sys.stderr, '-'*40 print client_address
print '-'*40
def shutdown_request(self, *args, **kwds):
try:
# just forward to base-class method, but wrap in try/except
HTTPServer.shutdown_request(self, *args, **kwds)
except Exception as err:
print >>sys.stderr, "Once more ignoring: %s" % err
if __name__ == "__main__": if __name__ == "__main__":
do_valgrind = False do_valgrind = False
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment