Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Growl-GNTP CPAN distribution.

Report information
The Basics
Id: 83231
Status: resolved
Priority: 0/
Queue: Growl-GNTP

People
Owner: Nobody in particular
Requestors: jwm [...] horde.net
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.16
Fixed in: (no value)



Subject: Please add configurable timeout
Please add configurable timeout support to Growl::GNTP (I've attached a patch). Growl::GNTP uses IO::Socket's default timeout mechanism, which is whatever the underlying OS' default is. That's usually too long, especially for applications like irssi, which blocks whenever its plugins do.
Subject: growl-gntp-add-timeout.patch
--- lib/Growl/GNTP.pm.orig 2013-02-08 18:08:58.000000000 -0500 +++ lib/Growl/GNTP.pm 2013-02-08 18:14:30.000000000 -0500 @@ -15,6 +15,7 @@ $args{Proto} ||= 'tcp'; $args{PeerHost} ||= 'localhost'; $args{PeerPort} ||= 23053; + $args{Timeout} ||= 5; $args{AppName} ||= 'Growl::GNTP'; $args{AppIcon} ||= ''; $args{Password} ||= ''; @@ -40,6 +41,7 @@ PeerAddr => $self->{PeerHost}, PeerPort => $self->{PeerPort}, Proto => $self->{Proto}, + Timeout => $self->{Timeout}, ); die $@ unless $sock; @@ -150,6 +152,7 @@ PeerAddr => $self->{PeerHost}, PeerPort => $self->{PeerPort}, Proto => $self->{Proto}, + Timeout => $self->{Timeout}, ); die $@ unless $sock; @@ -227,6 +230,7 @@ PeerAddr => $self->{PeerHost}, PeerPort => $self->{PeerPort}, Proto => $self->{Proto}, + Timeout => $self->{Timeout}, ); die $@ unless $sock; @@ -261,6 +265,7 @@ LocalPort => $data{Port}, Proto => 'tcp', Listen => 10, + Timeout => $self->{Timeout}, ); die $@ unless $sock; @@ -498,6 +503,7 @@ PeerHost # 'localhost' PeerPort # 23053 + Timeout # 5 AppName # 'Growl::GNTP' AppIcon # '' Password # ''
Subject: Re: [rt.cpan.org #83231] AutoReply: Please add configurable timeout
Date: Fri, 15 Feb 2013 19:58:54 -0500
To: Bugs in Growl-GNTP via RT <bug-Growl-GNTP [...] rt.cpan.org>
From: John Morrissey <jwm [...] horde.net>
This has been resolved in https://github.com/mattn/p5-Growl-GNTP/pull/5 . john -- John Morrissey _o /\ ---- __o jwm@horde.net _-< \_ / \ ---- < \, www.horde.net/ __(_)/_(_)________/ \_______(_) /_(_)__