Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] Response.Listener onQueued and threads

Hello,

I work on Apache Solr, and at the moment I'm fiddling with the Jetty HttpClient it uses.  HttpClient has a Request QueuedListener interface with an onQueued callback -- org.eclipse.jetty.client.api.Request.QueuedListener#onQueued

My hope was that this is called on the same thread that is issuing the request into HttpClient (it's "front door" so to speak) but I have evidence that it sometimes doesn't happen this way.  I have a test that failed once but it's hard to reproduce.  Assuming there's no guarantee on the thread used to call onQueued, and that it might not be the client/requesting thread, then can someone advise on how I might configure Jetty so as to make this different thread usage more reproducible so that I can come up with another approach to my problem and have more confidence I've ultimately fixed a regression?

~ David Smiley
Apache Lucene/Solr Search Developer

Back to the top