hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Jakarta-httpclient Wiki] Update of "HttpAsyncThreadingDesign" by RolandWeber
Date Thu, 25 May 2006 16:26:59 GMT
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:
added "consume response" as an explicit step

------------------------------------------------------------------------------
  
  attachment:responsibilities.png
  [[BR]]
- ''add 'consume' as a step?''
  
  Steps that necessarily have to be executed by an application thread are shown to the left.
  Only the application can decide which request should be executed and what to do with the
@@ -80, +79 @@

  be cookies in the response that need to be stored for the followup request.
  Reading the response header should be done before notification, because a
  notification before status code and headers of the response are known would
- be very inconvenient to use. The other sequences should be obvious.
+ be very inconvenient to use. The other sequences are obvious.
  
- ||<^> create request[[BR]] preprocess[[BR]] send request[[BR]] receive response header[[BR]]
postprocess[[BR]] interpret final response[[BR]] ||<^> allocate connection[[BR]] send
request[[BR]] receive response header[[BR]] read response body[[BR]] release connection[[BR]]
||<^> receive response header[[BR]] notify[[BR]] handle notification[[BR]] ||<^>
receive response header[[BR]] postprocess[[BR]] chase redirects[[BR]] ||
+ ||<^> create request[[BR]] preprocess[[BR]] send request[[BR]] receive response header[[BR]]
postprocess[[BR]] interpret final response[[BR]] ||<^> allocate connection[[BR]] send
request[[BR]] receive response header[[BR]] read response body[[BR]] consume response[[BR]]
release connection[[BR]] ||<^> receive response header[[BR]] notify[[BR]] handle notification[[BR]]
||<^> receive response header[[BR]] postprocess[[BR]] chase redirects[[BR]] ||
  
  
  == API ==
@@ -94, +93 @@

  
  == Blocking IO Implementation ==
  
- === Initial Design ===
+ === Red Design ===
  
- ''describe the design chosen for the initial implementation''
+ ''describe the original design, which maximizes responsibilites for application threads''
  
  
- === Alternative Design ===
+ === Cyan Design ===
  
- ''describe a design not chosen for the initial implementation''
+ ''describe an alternative design, which maximizes responsibilities for background threads''
  
  
  == Non-blocking IO Implementation ==

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


Mime
View raw message