3f1b01
From c6439962c995d4d7052af9fb3f92da93c1584b84 Mon Sep 17 00:00:00 2001
3f1b01
From: vividsnow <vividsnow@gmail.com>
3f1b01
Date: Fri, 31 Jul 2020 00:37:58 +0300
3f1b01
Subject: [PATCH] IO::Socket::UNIX: synchronize behavior with module
3f1b01
 documentation (#17787)
3f1b01
MIME-Version: 1.0
3f1b01
Content-Type: text/plain; charset=UTF-8
3f1b01
Content-Transfer-Encoding: 8bit
3f1b01
3f1b01
* synchronize behavior with module documentation
3f1b01
3f1b01
IO::Socket docs states that passing Blocking => 0 will be set socket to non-blocking mode
3f1b01
3f1b01
* Update AUTHORS
3f1b01
* bump version
3f1b01
3f1b01
Signed-off-by: Petr Písař <ppisar@redhat.com>
3f1b01
---
3f1b01
 AUTHORS                       | 1 +
3f1b01
 dist/IO/lib/IO/Socket/UNIX.pm | 6 +++++-
3f1b01
 2 files changed, 6 insertions(+), 1 deletion(-)
3f1b01
3f1b01
diff --git a/AUTHORS b/AUTHORS
3f1b01
index 577ba7d0ee..299fdec8a8 100644
3f1b01
--- a/AUTHORS
3f1b01
+++ b/AUTHORS
3f1b01
@@ -1293,6 +1293,7 @@ Ville Skyttä                   <scop@cs132170.pp.htv.fi>
3f1b01
 Vincent Pit                    <perl@profvince.com>
3f1b01
 Vishal Bhatia                  <vishal@deja.com>
3f1b01
 Vitali Peil                    <vitali.peil@uni-bielefeld.de>
3f1b01
+vividsnow                      <vividsnow@gmail.com>
3f1b01
 Vlad Harchev                   <hvv@hippo.ru>
3f1b01
 Vladimir Alexiev               <vladimir@cs.ualberta.ca>
3f1b01
 Vladimir Marek                 <vlmarek@volny.cz>
3f1b01
diff --git a/dist/IO/lib/IO/Socket/UNIX.pm b/dist/IO/lib/IO/Socket/UNIX.pm
3f1b01
index 04b36eaf74..14d0b27a8c 100644
3f1b01
--- a/dist/IO/lib/IO/Socket/UNIX.pm
3f1b01
+++ b/dist/IO/lib/IO/Socket/UNIX.pm
3f1b01
@@ -11,7 +11,7 @@ use IO::Socket;
3f1b01
 use Carp;
3f1b01
 
3f1b01
 our @ISA = qw(IO::Socket);
3f1b01
-our $VERSION = "1.41";
3f1b01
+our $VERSION = "1.42";
3f1b01
 
3f1b01
 IO::Socket::UNIX->register_domain( AF_UNIX );
3f1b01
 
3f1b01
@@ -30,6 +30,10 @@ sub configure {
3f1b01
     $sock->socket(AF_UNIX, $type, 0) or
3f1b01
 	return undef;
3f1b01
 
3f1b01
+    if(exists $arg->{Blocking}) {
3f1b01
+        $sock->blocking($arg->{Blocking}) or
3f1b01
+	    return undef;
3f1b01
+    }
3f1b01
     if(exists $arg->{Local}) {
3f1b01
 	my $addr = sockaddr_un($arg->{Local});
3f1b01
 	$sock->bind($addr) or
3f1b01
-- 
3f1b01
2.25.4
3f1b01