From b1ea6150adbde6268e0afd94bfc23a81f472c6d2 Mon Sep 17 00:00:00 2001 From: hno <> Date: Thu, 11 May 2006 02:34:18 +0000 Subject: [PATCH] Bug 1224 / 1530: Crash related to failed PUT/POST requests where body processing may close the connection "in the middle" of client side request processing. --- src/client_side.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/client_side.cc b/src/client_side.cc index 9b7558f68a..c0de6c4f57 100644 --- a/src/client_side.cc +++ b/src/client_side.cc @@ -1,6 +1,6 @@ /* - * $Id: client_side.cc,v 1.723 2006/05/08 23:38:33 robertc Exp $ + * $Id: client_side.cc,v 1.724 2006/05/10 20:34:18 hno Exp $ * * DEBUG: section 33 Client-side Routines * AUTHOR: Duane Wessels @@ -2532,6 +2532,9 @@ clientReadRequest(int fd, char *buf, size_t size, comm_err_t flag, int xerrno, } } + if (!conn->isOpen()) + return; + /* Process next request */ if (conn->getConcurrentRequestCount() == 0) fd_note(conn->fd, "Reading next request"); -- 2.47.2