Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 353563

Summary: HttpDestinationQueueTest takes too long
Product: [RT] Jetty Reporter: Thomas Becker <tbecker>
Component: clientAssignee: Thomas Becker <tbecker>
Status: RESOLVED FIXED QA Contact:
Severity: minor    
Priority: P3 CC: jetty-inbox, mgorovoy
Version: 7.4.2   
Target Milestone: 7.5.x   
Hardware: PC   
OS: All   
Whiteboard:
Attachments:
Description Flags
patch created with git format-patch none

Description Thomas Becker CLA 2011-08-02 07:34:36 EDT
Build Identifier: 

The provided patch will reuse the HttpClient to save runtime at the cost of some test coupling which does no harm in this case.
Also the timeout used has been reduced from 2s to 200ms. This might have side effects on some systems. So this patch needs thorough testing on different environments.

Reproducible: Always
Comment 1 Thomas Becker CLA 2011-08-02 09:28:46 EDT
Created attachment 200712 [details]
patch created with git format-patch
Comment 2 Michael Gorovoy CLA 2011-08-29 17:27:36 EDT
This patch has been applied in the beginning of the month. I suspect that most of the performance gain came from setting a short timeout rather when reusing HttpClient object.