HttpUtils.pm: fix nonblocking_get for windows/32 (Forum #45403)

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@10137 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2015-12-09 09:01:41 +00:00
parent e3d2868935
commit 96588ec7be

View File

@@ -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 );