Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 337896 - HttpExchange.timeout does not override HttpClient.timeout
Summary: HttpExchange.timeout does not override HttpClient.timeout
Status: RESOLVED FIXED
Alias: None
Product: Jetty
Classification: RT
Component: server (show other bugs)
Version: 7.3.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 7.3.x   Edit
Assignee: Simone Bordet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-22 15:40 EST by Simone Bordet CLA
Modified: 2011-02-22 15:42 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Simone Bordet CLA 2011-02-22 15:40:37 EST
If HttpExchange is configured with a timeout, this timeout is added (instead of overriding) the timeout specified in HttpClient.

The correct semantic would be for HttpExchange timeout to override HttpClient's.
Comment 1 Simone Bordet CLA 2011-02-22 15:42:37 EST
Fixed by correcting the timeout calculation in HttpClient.schedule(Timeout.Task task, long timeout), and forwarding the proper value to the Timeout instance.