Skip Menu |

This queue is for tickets about the Net-FSP CPAN distribution.

Report information
The Basics
Id: 111345
Status: open
Priority: 0/
Queue: Net-FSP

People
Owner: Nobody in particular
Requestors: turnerjw784 [...] yahoo.com
Cc:
AdminCc:

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



Subject: Produces warnings when used in another program, ie "perl -e'use Net::FSP'"
Possible precedence issue with control flow operator at /usr/local/share/perl/5.20.2/Net/FSP/Handle/Read.pm line 78. Possible precedence issue with control flow operator at /usr/local/share/perl/5.20.2/Net/FSP.pm line 162. Possible precedence issue with control flow operator at /usr/local/share/perl/5.20.2/Net/FSP.pm line 191. I think I have fixed these in a patch (no more run-time warnings), but don't have an FSP server to test connecting to, so please review. Problems exist in both FSP.pm and FSP/Handle/Read.pm (line 78). Thanks, Jim Turner
Subject: FSP.diff
162c162,164 < return defined recv $self->{socket}, ${$response}, $self->{max_payload_size} + $HEADER_SIZE, 0 or _check_fatal('Could not receive'); --- > #JWT:CHGD. TO NEXT 20160120 TO FIX WARNING: return defined recv $self->{socket}, ${$response}, $self->{max_payload_size} + $HEADER_SIZE, 0 or _check_fatal('Could not receive'); > my $res = recv($self->{socket}, ${$response}, $self->{max_payload_size} + $HEADER_SIZE, 0); > return defined($res) ? $res : _check_fatal('Could not receive'); 188,189c190,191 < return < $value_for->{checksum} == _checksum($response, 0) --- > #JWT:CHGD. TO NEXT 20160120 TO FIX WARNING: return > return ($value_for->{checksum} == _checksum($response, 0) 192c194 < and not($pos_must_match_for{ $value_for->{command} } && $send_pos != $value_for->{pos}); --- > and not($pos_must_match_for{ $value_for->{command} } && $send_pos != $value_for->{pos})) ? 1 : 0;
Subject: Read.diff
78c78,79 < return $self->{eof} and $self->{buffer} eq ''; --- > #JWT:CHGD. TO NEXT 20160120 TO FIX WARNING: return $self->{eof} and $self->{buffer} eq ''; > return ($self->{eof} && $self->{buffer} eq '') ? 1 : 0;
Subject: Re: [rt.cpan.org #111345] Produces warnings when used in another program, ie "perl -e'use Net::FSP'"
Date: Fri, 12 Feb 2016 10:44:51 +0100
To: bug-Net-FSP [...] rt.cpan.org
From: Leon Timmermans <leont [...] cpan.org>
On Thu, Jan 21, 2016 at 6:10 AM, Jim Turner via RT <bug-Net-FSP@rt.cpan.org> wrote: Show quoted text
> Possible precedence issue with control flow operator at > /usr/local/share/perl/5.20.2/Net/FSP/Handle/Read.pm line 78. > Possible precedence issue with control flow operator at > /usr/local/share/perl/5.20.2/Net/FSP.pm line 162. > Possible precedence issue with control flow operator at > /usr/local/share/perl/5.20.2/Net/FSP.pm line 191. > > I think I have fixed these in a patch (no more run-time warnings), but > don't have an FSP server to test connecting to, so please review. Problems > exist in both FSP.pm and FSP/Handle/Read.pm (line 78). > >
Thanks for the report. I had noticed it before, and had written a fix for it too, but unfortunately I don't have an FSP server to test against either. Last time I checked none of the listed public servers are still operational. It seems FSP is dead at last. Leon