From ba69448d21535d2a0d7c06693b0ca276213fd283 Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Wed, 9 Dec 2015 09:01:41 +0000 Subject: [PATCH] HttpUtils.pm: fix nonblocking_get for windows/32 (Forum #45403) git-svn-id: https://svn.fhem.de/fhem/trunk@10137 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/HttpUtils.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fhem/FHEM/HttpUtils.pm b/fhem/FHEM/HttpUtils.pm index 16595c976..32ea8fd80 100644 --- a/fhem/FHEM/HttpUtils.pm +++ b/fhem/FHEM/HttpUtils.pm @@ -147,7 +147,8 @@ HttpUtils_Connect($) } my $ret = connect($hash->{conn}, sockaddr_in($port, $iaddr)); if(!$ret) { - if($!{EINPROGRESS} || int($!)==10035) { # Nonblocking connect + if($!{EINPROGRESS} || int($!)==10035 || + (int($!)==140 && $^O eq "MSWin32")) { # Nonblocking connect $hash->{FD} = $hash->{conn}->fileno(); my %timerHash = ( hash => $hash );