diff lib/Test/Nginx.pm @ 87:f2d09159a8f3

Tests: proxy_store leaving temporary files bug test. It shouldn't even if client closed prematurely connection.
author Maxim Dounin <mdounin@mdounin.ru>
date Sun, 26 Apr 2009 03:54:40 +0400
parents d5330d926fac
children 5276d85d5040
line wrap: on
line diff
--- a/lib/Test/Nginx.pm
+++ b/lib/Test/Nginx.pm
@@ -260,6 +260,7 @@ sub http($;%) {
 		$s->print($request);
 		local $/;
 		select undef, undef, undef, $extra{sleep} if $extra{sleep};
+		return '' if $extra{aborted};
 		$reply = $s->getline();
 		log_in($reply);
 		alarm(0);