mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +00:00
HttpUtils.pm: Fix write error for nonblocking (Forum #38328)
git-svn-id: https://svn.fhem.de/fhem/trunk@19384 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
ed5c711334
commit
b0c122062f
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user