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
Make IO::Socket::INET.accept() return an IO::Socket::INET object rather than a Parrot IO object #1381
Comments
From @carbinThe current IO::Socket::INET.accept() returns a Parrot IO object rather my $client = $server.accept(); Parrot's recv() function is being called, not Rakudo's -- therefore you This patch makes accept() return an instance of IO::Socket::INET with This will affect applications that currently call recv() from the object |
From @carbin0002-Change-IO-Socket-INET.accept-to-return-an-instan.patchFrom 087de23bf7c6727e405053690103196ab47323f5 Mon Sep 17 00:00:00 2001
From: Carlin Bingham <carlin@theintersect.org>
Date: Tue, 27 Oct 2009 22:28:24 +1300
Subject: [PATCH] Change IO::Socket::INET.accept() to return an instance of IO::Socket::INET rather than a Parrot IO object
---
src/setting/IO/Socket/INET.pm | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/setting/IO/Socket/INET.pm b/src/setting/IO/Socket/INET.pm
index b8c7c80..ce69631 100644
--- a/src/setting/IO/Socket/INET.pm
+++ b/src/setting/IO/Socket/INET.pm
@@ -48,6 +48,6 @@ class IO::Socket::INET does IO::Socket {
}
method accept() {
- return $!PIO.accept();
+ return IO::Socket::INET.new( :PIO( $!PIO.accept() ) );
}
}
--
1.6.0.4
|
From @moritzCarlin Bingham (via RT) wrote:
Care to elaborate on the "affect"? does it imply "break"? If so I'd like Cheers, |
The RT System itself - Status changed from 'new' to 'open' |
From @carbinOn Wed Oct 28 13:43:51 2009, moritz wrote:
Yes, any application depending on that recv() to behave the way it does -- |
From @moritzI'm sorry that this patch didn't get applied for so long; now we have |
@moritz - Status changed from 'open' to 'rejected' |
Migrated from rt.perl.org#70045 (status was 'rejected')
Searchable as RT70045$
The text was updated successfully, but these errors were encountered: