You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by Apache Wiki <wi...@apache.org> on 2006/08/27 18:26:45 UTC

[Jakarta-httpclient Wiki] Update of "HttpAsyncThreadingDesign" by RolandWeber

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Jakarta-httpclient Wiki" for change notification.

The following page has been changed by RolandWeber:
http://wiki.apache.org/jakarta-httpclient/HttpAsyncThreadingDesign

The comment on the change is:
documented outcome of the design discussion on the developer list

------------------------------------------------------------------------------
  background thread and thereby interfere with processing of other requests and responses.
  
  
+ === Consolidated Design ===
+ 
+ After discussion on the developer mailing list, the following design choices have been made for the initial implementation.
+ They are subject to review, discussion, and change.
+ 
+  1. Preprocessing can be switched between application thread and background thread through a parameter.[[BR]] The default is to preprocess in the application thread, since that keeps bad requests that fail to preprocess out of the dispatcher.
+  1. Postprocessing can be switched between application thread and background thread through a parameter.[[BR]] The default is to postprocess in the background thread, since it is unpredictable which of several application threads would be the one that does the postprocessing.
+  1. Consuming of the remaining response body is done in the background thread, since that step is logically tied to connection management.[[BR]] Applications that don't want the background thread to consume the response body can consume it explicitly before closing the handle.
+ 
  == Non-blocking IO Implementation ==
  
  ''This is the place for discussing {{{java.nio}}} based dispatchers.''

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org