diff options
author | trociny <trociny@FreeBSD.org> | 2015-01-11 16:17:56 +0800 |
---|---|---|
committer | trociny <trociny@FreeBSD.org> | 2015-01-11 16:17:56 +0800 |
commit | c38e3df2f7becaaa00ad43ad90d96b9e286750f6 (patch) | |
tree | 5af81f0e8152232c4d65076b577d35ce6b0233c5 /sysutils | |
parent | bef97ad00061aff689fbf5f3d6afe25e943b8ade (diff) | |
download | freebsd-ports-gnome-c38e3df2f7becaaa00ad43ad90d96b9e286750f6.tar.gz freebsd-ports-gnome-c38e3df2f7becaaa00ad43ad90d96b9e286750f6.tar.zst freebsd-ports-gnome-c38e3df2f7becaaa00ad43ad90d96b9e286750f6.zip |
Update to 2.72.
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/p5-MogileFS-Server/Makefile | 3 | ||||
-rw-r--r-- | sysutils/p5-MogileFS-Server/distinfo | 4 | ||||
-rw-r--r-- | sysutils/p5-MogileFS-Server/files/patch-Poolable.pm | 73 |
3 files changed, 3 insertions, 77 deletions
diff --git a/sysutils/p5-MogileFS-Server/Makefile b/sysutils/p5-MogileFS-Server/Makefile index 642ff22a441a..e10bcd07936c 100644 --- a/sysutils/p5-MogileFS-Server/Makefile +++ b/sysutils/p5-MogileFS-Server/Makefile @@ -2,8 +2,7 @@ # $FreeBSD$ PORTNAME= MogileFS-Server -PORTVERSION= 2.70 -PORTREVISION= 2 +PORTVERSION= 2.72 CATEGORIES= sysutils perl5 MASTER_SITES= CPAN MASTER_SITE_SUBDIR= CPAN:DORMANDO diff --git a/sysutils/p5-MogileFS-Server/distinfo b/sysutils/p5-MogileFS-Server/distinfo index dbace10a0e8d..e25193e3d408 100644 --- a/sysutils/p5-MogileFS-Server/distinfo +++ b/sysutils/p5-MogileFS-Server/distinfo @@ -1,2 +1,2 @@ -SHA256 (MogileFS-Server-2.70.tar.gz) = 686f328a4a6dacdb6c6153e7c1837875580d8437bf91ebd74ef197b1caefa7a6 -SIZE (MogileFS-Server-2.70.tar.gz) = 199850 +SHA256 (MogileFS-Server-2.72.tar.gz) = d7d5a45d50127bf62e451c6d86eb247103b01c46662898ae4e18daa08be8e0bf +SIZE (MogileFS-Server-2.72.tar.gz) = 200057 diff --git a/sysutils/p5-MogileFS-Server/files/patch-Poolable.pm b/sysutils/p5-MogileFS-Server/files/patch-Poolable.pm deleted file mode 100644 index 1b0c4253b38b..000000000000 --- a/sysutils/p5-MogileFS-Server/files/patch-Poolable.pm +++ /dev/null @@ -1,73 +0,0 @@ -Eric Wong: connection/poolable: do not write before event_write - -Blindly attempting to write to a socket before a TCP connection can be -established returns EAGAIN on Linux, but not on FreeBSD 8/9. This -causes Danga::Socket to error out, as it won't attempt to buffer on -anything but EAGAIN on write() attempts. - -Now, we buffer writes explicitly after the initial socket creation and -connect(), and only call Danga::Socket::write when we've established -writability. This works on Linux, too, and avoids an unnecessary -syscall in most cases. - -Reported-by: Alex Yakovenko <aleksey.yakovenko@gmail.com> - ---- lib/MogileFS/Connection/Poolable.pm.orig 2013-08-19 05:52:33.000000000 +0300 -+++ lib/MogileFS/Connection/Poolable.pm 2013-11-20 22:57:31.000000000 +0200 -@@ -13,6 +13,7 @@ use fields ( - 'mfs_expire_cb', # Danga::Socket::Timer callback - 'mfs_requests', # number of requests made on this object - 'mfs_err', # used to propagate an error to start() -+ 'mfs_writeq', # arrayref if connecting, undef otherwise - ); - use Socket qw(SO_KEEPALIVE); - use Time::HiRes; -@@ -27,6 +28,9 @@ sub new { - $self->{mfs_hostport} = [ $ip, $port ]; - $self->{mfs_requests} = 0; - -+ # newly-created socket, we buffer writes until event_write is triggered -+ $self->{mfs_writeq} = []; -+ - return $self; - } - -@@ -53,6 +57,38 @@ sub mark_idle { - $self->{mfs_requests}++; - } - -+sub write { -+ my ($self, $arg) = @_; -+ my $writeq = $self->{mfs_writeq}; -+ -+ if (ref($writeq) eq "ARRAY") { -+ # if we're still connecting, we must buffer explicitly for *BSD -+ # and not attempt a real write() until event_write is triggered -+ push @$writeq, $arg; -+ $self->watch_write(1); # enable event_write triggering -+ 0; # match Danga::Socket::write return value -+ } else { -+ $self->SUPER::write($arg); -+ } -+} -+ -+# Danga::Socket will trigger this when a socket is writable -+sub event_write { -+ my ($self) = @_; -+ -+ # we may have buffered writes in mfs_writeq during non-blocking connect(), -+ # this is needed on *BSD but unnecessary (but harmless) on Linux. -+ my $writeq = delete $self->{mfs_writeq}; -+ if ($writeq) { -+ $self->watch_write(0); # ->write will re-enable if needed -+ foreach my $queued (@$writeq) { -+ $self->write($queued); -+ } -+ } else { -+ $self->SUPER::event_write(); -+ } -+} -+ - # the request running on this connection is retryable if this socket - # has ever been marked idle. The connection pool can never be 100% - # reliable for detecting dead sockets, and all HTTP requests made by |