diff options
| author | Callum Prentice <callum@gmail.com> | 2016-12-06 13:33:10 -0800 | 
|---|---|---|
| committer | Callum Prentice <callum@gmail.com> | 2016-12-06 13:33:10 -0800 | 
| commit | 15c043ec20eeaa08de21c0aed4e122b5095a98b0 (patch) | |
| tree | e011294ca4a6570dbc71b2e778d1c03f63be579c /indra/llcorehttp | |
| parent | bf4dd33c465f014749ec63fff677c12b9b4418bc (diff) | |
| parent | 40b1913af318f58f2a56e4bf4049437748405033 (diff) | |
automated merge with tip of lindenlab/viewer64
Diffstat (limited to 'indra/llcorehttp')
| -rwxr-xr-x | indra/llcorehttp/tests/test_llcorehttp_peer.py | 14 | 
1 files changed, 10 insertions, 4 deletions
| diff --git a/indra/llcorehttp/tests/test_llcorehttp_peer.py b/indra/llcorehttp/tests/test_llcorehttp_peer.py index caa204b519..4dfb60bddb 100755 --- a/indra/llcorehttp/tests/test_llcorehttp_peer.py +++ b/indra/llcorehttp/tests/test_llcorehttp_peer.py @@ -284,10 +284,16 @@ class Server(HTTPServer):      # default behavior which *shouldn't* cause the program to return      # a failure status.      def handle_error(self, request, client_address): -        print '-'*40 -        print 'Ignoring exception during processing of request from', -        print client_address -        print '-'*40 +        print >>sys.stderr, '-'*40 +        print >>sys.stderr, 'Ignoring exception during processing of request from', client_address +        print >>sys.stderr, '-'*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__":      do_valgrind = False | 
