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