hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oleg Kalnichevski (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HTTPCORE-73) Add notification to NHttpServiceHandler when response has been sent
Date Tue, 15 May 2007 08:25:16 GMT

    [ https://issues.apache.org/jira/browse/HTTPCORE-73?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12495890

Oleg Kalnichevski commented on HTTPCORE-73:

At what point do you want this event to fire?
(1) response head has been submitted and copied to the session buffer
(2) response head has been written from the session buffer to the underlying channel
(3) response head and response body have been fully written to the underlying channel


PS: My guts tell me this one is going to be ugly

> Add notification to NHttpServiceHandler when response has been sent
> -------------------------------------------------------------------
>                 Key: HTTPCORE-73
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-73
>             Project: HttpComponents Core
>          Issue Type: Improvement
>          Components: HttpCore NIO
>    Affects Versions: 4.0-alpha5
>            Reporter: Steffen Pingel
> Add a new method to NHttpServiceHandler that notifies the service handler that a response
has been sent:
>  void responseSubmitted(NHttpServerConnection conn);
> The sent response can be retrieved through conn.getHttpResponse() when the method is
invoked. The use case here is that I need to enable and disable throttling per response (which
is handled by the underlying NIO layer) and need to know at what point the output buffer for
a response has been flushed. The throttling is controlled in the application layer so I need
to propagate the event through the layers.
> Such an event notification could also replace NHttpServerConnection.isResponseSubmitted()
which currently has an implementation in DefaultNHttpServerConnection that does not match
the JavaDoc specification.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

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

View raw message