Index: subversion/libsvn_ra_serf/util.c =================================================================== --- subversion/libsvn_ra_serf/util.c (revision 1349292) +++ subversion/libsvn_ra_serf/util.c (working copy) @@ -1847,6 +1847,8 @@ ### packet. we need ongoing parsing. see SERVER_ERROR down below ### in the process_body: area. we'll eventually move to that. */ SVN_ERR(handle_server_error(request, response, scratch_pool)); + if (err) + goto handle_error; if (!handler->session->pending_error) { @@ -1926,6 +1928,7 @@ handler->response_baton, scratch_pool); +handle_error: if (err && (!SERF_BUCKET_READ_ERROR(err->apr_err) || APR_STATUS_IS_ECONNRESET(err->apr_err)))