Skip to content

Test failures w/ Jetty 9.3 #1035

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

Closed
slandelle opened this issue Nov 10, 2015 · 2 comments
Closed

Test failures w/ Jetty 9.3 #1035

slandelle opened this issue Nov 10, 2015 · 2 comments
Assignees
Labels

Comments

@slandelle
Copy link
Contributor

When trying to upgrade test suite to Jetty 9.3, some tests fail randomly (racy).

Symptom is that the connection gets closed without Netty reading the response.
This is either a Netty (4.0.33.Final) bug or a Jetty one.

@slandelle
Copy link
Contributor Author

This really looks like a Netty bug.

  • Using latest stable 4.0.33-Final
  • OSX 10.11.1
  • Hotspot 1.8.0_66
  • AUTO_READ is set to false and read is first triggered by handler in channelActive

Steps to reproduce:

  • checkout jetty-9.3 branch
  • run mvn -Dtest=org.asynchttpclient.BasicAuthTest test

basicAuthInputStreamTest will randomly fail.

I'm pretty sure that's a Netty bug as:

  • the AsyncHttpClientHandler is only notified with "channelInactive". Other methods are never called.
  • wireshark logs show that the 401 response was indeed received prior to FIN.
2015-11-18 00:48:00,268 [AsyncHttpClient1-4-1] DEBUG org.asynchttpclient.netty.channel.NettyConnectListener - Using non-cached Channel [id: 0x23c2ee72, /127.0.0.1:49692 => /127.0.0.1:49688] for POST '/'
2015-11-18 00:48:00,287 [AsyncHttpClient1-4-1] DEBUG org.asynchttpclient.netty.handler.AsyncHttpClientHandler - Channel [id: 0x23c2ee72, /127.0.0.1:49692 :> /127.0.0.1:49688] inactive

wireshark

@slandelle
Copy link
Contributor Author

cc @trustin @normanmaurer I'm pretty sure this is a Netty bug. Do I really have to produce a pure Netty reproducer for opening an issue on Netty, or is this sufficient?

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