New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IO::Socket::INET not properly handling input-line-separator param #2627
Comments
From @bbkrRun following P6 listener: perl6 -e 'my $l = IO::Socket::INET.new( input-line-separator => "\r\n", localport => 8080, :listen); while my $c = $l.accept() { for ^10 { $c.get().encode().gist.say; }; $c.close }' Then call it with P5 client: perl -e 'use LWP::UserAgent; LWP::UserAgent->new->post("http://localhost​:8080");' Listener will print: Buf:0x<50 4f 53 54 20 2f 20 48 54 54 50 2f 31 2e 31 0d> As you can see carriage return (0x0D) is present in get() output despite fact that it was defined as line separator. |
From @FROGGSNow (with latest commit from moritz today): Buf:0x<50 4f 53 54 20 2f 20 48 54 54 50 2f 31 2e 31> Please confirm. |
The RT System itself - Status changed from 'new' to 'open' |
From @jnthnOn Sun Jan 29 02:39:03 2012, pawel.pabian@implix.com wrote:
Was fixed for a good while; was doing some further improvements to get today and confirmed it is still fixed and added a test in S32-io/IO-Socket-INET.t. /jnthn |
@jnthn - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#109306 (status was 'resolved')
Searchable as RT109306$
The text was updated successfully, but these errors were encountered: