[
https://issues.apache.org/jira/browse/HTTPCORE-657?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17259984#comment-17259984
]
Oleg Kalnichevski commented on HTTPCORE-657:
--------------------------------------------
[~desmondyeung] If setting Traffic Class on a per I/O reactor basis is
sufficient please feel free to add necessary instance variables to
the`IOReactorConfig`. If you want to be able to apply on a per connection (I/O
session) basis, consider extending the `EndpointParameters` class and passing
it `SingleCoreIOReactor#prepareSocket` as an attachment.
Oleg
> Way to set Traffic Class of socket in 5.0
> -----------------------------------------
>
> Key: HTTPCORE-657
> URL: https://issues.apache.org/jira/browse/HTTPCORE-657
> Project: HttpComponents HttpCore
> Issue Type: Improvement
> Components: HttpCore
> Affects Versions: 5.0
> Reporter: Desmond Yeung
> Priority: Minor
>
> I didn't see any way of setting the Traffic Class of an underlying socket in
> 5.0.
> Would it be possible to expose this as a setting on IOReactorConfig similar
> to setTcpNoDelay or setSoTimeout?
> I know this would be more flexible to be able to set this per connection, but
> for our use case, we have different services within our network and we'd like
> to be able to classify and manage the traffic of each service at a network
> level so that flexibility isn't a requirement.
> If you have suggestions on the approach, I'd be happy to open a PR.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]