fix #73 and fix http_connection_fail_test to catch it
Merge remote-tracking branch 'origin/patches-2.0'