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