Skip to content
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

write on closed socket not failing as it should #5897

Open
p6rt opened this issue Dec 19, 2016 · 3 comments
Open

write on closed socket not failing as it should #5897

p6rt opened this issue Dec 19, 2016 · 3 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Dec 19, 2016

Migrated from rt.perl.org#130377 (status was 'open')

Searchable as RT130377$

@p6rt
Copy link
Author

p6rt commented Dec 19, 2016

From bradleyg@Dal.Ca

This is Rakudo version 2016.11 built on MoarVM version 2016.11
implementing Perl 6.c.

Here is a program that demonstrates the problem.

use v6;

my $s = IO​::Socket​::INET.new(​:host('irc.freenode.net'), :port(6667));
$s.print("QUIT\r\n");
for $s.lines { say $_; }
say so $s.print("this should fail");

@p6rt
Copy link
Author

p6rt commented Dec 20, 2016

From @coke

On Mon, 19 Dec 2016 14​:38​:09 -0800, bradleyg@​Dal.Ca wrote​:

This is Rakudo version 2016.11 built on MoarVM version 2016.11
implementing Perl 6.c.

Here is a program that demonstrates the problem.

use v6;

my $s = IO​::Socket​::INET.new(​:host('irc.freenode.net'), :port(6667));
$s.print("QUIT\r\n");
for $s.lines { say $_; }
say so $s.print("this should fail");

Note that if you explicitly close the socket, this works as expected.

use v6;

my $s = IO​::Socket​::INET.new(​:host('irc.freenode.net'), :port(6667));
$s.print("QUIT\r\n");
for $s.lines { say $_; }
$s.close;
say so $s.print("this should fail");

:rajaniemi.freenode.net NOTICE * :*** Looking up your hostname...
:rajaniemi.freenode.net NOTICE * :*** Checking Ident
:rajaniemi.freenode.net NOTICE * :*** Couldn't look up your hostname
:rajaniemi.freenode.net NOTICE * :*** No Ident response
ERROR :Closing Link​: 127.0.0.1 (Client Quit)
False

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Dec 20, 2016

The RT System itself - Status changed from 'new' to 'open'

@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant