From a24dde77b0996ba79e25fd95fe6e40a110e1e8d9 Mon Sep 17 00:00:00 2001 From: rudolfkoenig Date: Tue, 14 May 2019 06:17:34 +0000 Subject: [PATCH] HttpUtils.pm: Fix write error for nonblocking (Forum #38328) git-svn-id: https://svn.fhem.de/fhem/trunk@19384 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/HttpUtils.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/fhem/FHEM/HttpUtils.pm b/fhem/FHEM/HttpUtils.pm index 8ed6c00ef..b0477d874 100644 --- a/fhem/FHEM/HttpUtils.pm +++ b/fhem/FHEM/HttpUtils.pm @@ -618,6 +618,7 @@ HttpUtils_Connect2($) $hash->{directWriteFn} = sub($) { # Nonblocking write my $ret = syswrite $hash->{conn}, $data; if($ret <= 0) { + return if($! == EAGAIN); my $err = $!; RemoveInternalTimer(\%timerHash); HttpUtils_Close($hash);