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

IO::Socket::Async spectest fails sometimes #3442

Closed
p6rt opened this issue Jul 17, 2014 · 6 comments
Closed

IO::Socket::Async spectest fails sometimes #3442

p6rt opened this issue Jul 17, 2014 · 6 comments

Comments

@p6rt
Copy link

p6rt commented Jul 17, 2014

Migrated from rt.perl.org#122318 (status was 'resolved')

Searchable as RT122318$

@p6rt
Copy link
Author

p6rt commented Jul 17, 2014

From @FROGGS

perl6-m t/spec/S32-io/IO-Socket-Async.t
1..6
ok 1 - Async listen on bogus hostname
ok 2 - Async connect to unavailable server breaks promise
ok 3 - Async connect to available server keeps promise
ok 4 - Echo server
ok 5 - Discard server
not ok 6 - bytes_supply

When this happens then $binary has 4096 elements, $received only has one (an empty string).

@p6rt
Copy link
Author

p6rt commented Aug 3, 2014

From @coke

On Thu Jul 17 11​:06​:20 2014, FROGGS.de wrote​:

perl6-m t/spec/S32-io/IO-Socket-Async.t
1..6
ok 1 - Async listen on bogus hostname
ok 2 - Async connect to unavailable server breaks promise
ok 3 - Async connect to available server keeps promise
ok 4 - Echo server
ok 5 - Discard server
not ok 6 - bytes_supply

When this happens then $binary has 4096 elements, $received only has
one (an empty string).

Test 4 is also flapping, at least on macosx

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Aug 3, 2014

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

@p6rt
Copy link
Author

p6rt commented Aug 4, 2014

From @lizmat

On 04 Aug 2014, at 01​:58, Will Coleda via RT <perl6-bugs-followup@​perl.org> wrote​:

On Thu Jul 17 11​:06​:20 2014, FROGGS.de wrote​:

perl6-m t/spec/S32-io/IO-Socket-Async.t
1..6
ok 1 - Async listen on bogus hostname
ok 2 - Async connect to unavailable server breaks promise
ok 3 - Async connect to available server keeps promise
ok 4 - Echo server
ok 5 - Discard server
not ok 6 - bytes_supply

When this happens then $binary has 4096 elements, $received only has
one (an empty string).

Test 4 is also flapping, at least on macosx

This only happens under stress. When run by itself, I’ve never seen the test flap.

Liz

@p6rt
Copy link
Author

p6rt commented Nov 27, 2015

From @jnthn

On Mon Aug 04 02​:02​:35 2014, elizabeth wrote​:

On 04 Aug 2014, at 01​:58, Will Coleda via RT <perl6-bugs-
followup@​perl.org> wrote​:

On Thu Jul 17 11​:06​:20 2014, FROGGS.de wrote​:

perl6-m t/spec/S32-io/IO-Socket-Async.t
1..6
ok 1 - Async listen on bogus hostname
ok 2 - Async connect to unavailable server breaks promise
ok 3 - Async connect to available server keeps promise
ok 4 - Echo server
ok 5 - Discard server
not ok 6 - bytes_supply

When this happens then $binary has 4096 elements, $received only has
one (an empty string).

Test 4 is also flapping, at least on macosx

This only happens under stress. When run by itself, I’ve never seen
the test flap.

The sequencing construct and protocol was fragile in a couple of ways, which could lead to data loss in some cases (more likely to happen under stress). I've fixed that, and the test seems to run well for me repeatedly, and during spectest, so unfudged these.

@p6rt p6rt closed this as completed Nov 27, 2015
@p6rt
Copy link
Author

p6rt commented Nov 27, 2015

@jnthn - Status changed from 'open' to 'resolved'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant