http_test.py: Handles possible closed connection in test_buffer_overflow.