4.4.5 why the httpcore-nio release conn is before the request future is done, this may trigger request be canceled, this lead to request future don't get the result but really the response is return. #44
Conversation
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpcore/branches/4.4.x@1633343 13f79535-47bb-0310-9956-ffa450edef68
…on from the pool git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpcore/branches/4.4.x@1638391 13f79535-47bb-0310-9956-ffa450edef68
…chronized access Contributed by Dmitry Potapov <dpotapov at yandex-team.ru> git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpcore/branches/4.4.x@1638960 13f79535-47bb-0310-9956-ffa450edef68
…nchronized scope Contributed by Dmitry Potapov <dpotapov at yandex-team.ru> git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpcore/branches/4.4.x@1638961 13f79535-47bb-0310-9956-ffa450edef68
…buffer, 0) Contributed by Dmitry Potapov <dpotapov at yandex-team.ru> git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpcore/branches/4.4.x@1639702 13f79535-47bb-0310-9956-ffa450edef68
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpcore/branches/4.4.x@1643711 13f79535-47bb-0310-9956-ffa450edef68
… / key managers when loading trust / ket material from multiple sources git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpcore/branches/4.4.x@1644008 13f79535-47bb-0310-9956-ffa450edef68
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpcore/branches/4.4.x@1644011 13f79535-47bb-0310-9956-ffa450edef68
…init only uses first instance of managers git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpcore/branches/4.4.x@1644062 13f79535-47bb-0310-9956-ffa450edef68
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpcore/branches/4.4.x@1644068 13f79535-47bb-0310-9956-ffa450edef68
…subclass in order perform additional trust / key material validation git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpcore/branches/4.4.x@1645438 13f79535-47bb-0310-9956-ffa450edef68
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpcore/branches/4.4.x@1645447 13f79535-47bb-0310-9956-ffa450edef68
…case to make pass on Windows git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpcore/branches/4.4.x@1645674 13f79535-47bb-0310-9956-ffa450edef68
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpcore/branches/4.4.x@1646173 13f79535-47bb-0310-9956-ffa450edef68
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpcore/branches/4.4.x@1646229 13f79535-47bb-0310-9956-ffa450edef68
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpcore/branches/4.4.x@1647260 13f79535-47bb-0310-9956-ffa450edef68
…long as there is still data in the session input buffer git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpcore/branches/4.4.x@1658389 13f79535-47bb-0310-9956-ffa450edef68
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpcore/branches/4.4.x@1658910 13f79535-47bb-0310-9956-ffa450edef68
Restored logic with UNAVAILABLE relase identifier git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpcore/branches/4.4.x@1658945 13f79535-47bb-0310-9956-ffa450edef68
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpcore/branches/4.4.x@1659787 13f79535-47bb-0310-9956-ffa450edef68
…se#shutdown method git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpcore/branches/4.4.x@1660137 13f79535-47bb-0310-9956-ffa450edef68
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpcore/branches/4.4.x@1660628 13f79535-47bb-0310-9956-ffa450edef68
…ose a content entity git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpcore/branches/4.4.x@1661656 13f79535-47bb-0310-9956-ffa450edef68
…ections in connection pools git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpcore/branches/4.4.x@1662658 13f79535-47bb-0310-9956-ffa450edef68
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpcore/branches/4.4.x@1666700 13f79535-47bb-0310-9956-ffa450edef68
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpcore/branches/4.4.x@1666701 13f79535-47bb-0310-9956-ffa450edef68
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpcore/branches/4.4.x@1666707 13f79535-47bb-0310-9956-ffa450edef68
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpcore/branches/4.4.x@1667193 13f79535-47bb-0310-9956-ffa450edef68
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpcore/branches/4.4.x@1667713 13f79535-47bb-0310-9956-ffa450edef68
…eStrategy git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpcore/branches/4.4.x@1673254 13f79535-47bb-0310-9956-ffa450edef68
Member
|
Could you please update your PR to include only those changes you would like to be incorporated into the project? At the moment your PR pulls 143 commits and changes 314 files. |
Member
|
Probably an EOL thing...
…On Wed, May 24, 2017 at 12:41 PM, Oleg Kalnichevski < ***@***.***> wrote:
Could you please update your PR to include only those changes you would
like to be incorporated into the project? At the moment your PR pulls 143
commits and changes 314 files.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#44 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABIfN2q-ZDPdoWuwC2vrpZdZr-mVbTFVks5r9IfwgaJpZM4NhfRW>
.
--
E-Mail: garydgregory@gmail.com | ggregory@apache.org
Java Persistence with Hibernate, Second Edition
<https://www.amazon.com/gp/product/1617290459/ref=as_li_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=1617290459&linkCode=as2&tag=garygregory-20&linkId=cadb800f39946ec62ea2b1af9fe6a2b8>
<http:////ir-na.amazon-adsystem.com/e/ir?t=garygregory-20&l=am2&o=1&a=1617290459>
JUnit in Action, Second Edition
<https://www.amazon.com/gp/product/1935182021/ref=as_li_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=1935182021&linkCode=as2&tag=garygregory-20&linkId=31ecd1f6b6d1eaf8886ac902a24de418%22>
<http:////ir-na.amazon-adsystem.com/e/ir?t=garygregory-20&l=am2&o=1&a=1935182021>
Spring Batch in Action
<https://www.amazon.com/gp/product/1935182951/ref=as_li_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=1935182951&linkCode=%7B%7BlinkCode%7D%7D&tag=garygregory-20&linkId=%7B%7Blink_id%7D%7D%22%3ESpring+Batch+in+Action>
<http:////ir-na.amazon-adsystem.com/e/ir?t=garygregory-20&l=am2&o=1&a=1935182951>
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory
|
… throwing "Maximum line length limit exceeded" exception in some corner cases
Member
|
@gavenpeng If you are unwilling to update the PR could you please close it? |
Author
|
closed |
…g connections more gracefully
Member
|
@gavenpeng Could you please close this pull request? |
…0 and status < 400) out of sequence responses as valid
returns an empty response when a socket timeout is detected
…ng an expect-continue handshake
…not used. Currently for each remote connection we make an SSLIOSession. Each SSLIOSession has 4 buffers: private final SSLBuffer inEncrypted; private final SSLBuffer outEncrypted; private final SSLBuffer inPlain; private final SSLBuffer outPlain; And each of these buffers occupies 16K (64K per remote connection). If an application uses NIO for long polling and there are (for example) 9000 idle long polling connections waiting for notifications. This makes 9000 * 64K = 576 000K (576MB). As outPlain buffer is not used if we remove it this will save 25% of the memory from the buffers used for the remote connections. In the example case this is 144MB.
|
All done here. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I am use httpcore-nio found a strange problem, the request is very faster,bu no get the result,I read the code,has the follow problem.
while http request response complete, the reactor io thread then set request consumer is complete, the http reactor io thread to invoke the completed method of the RequestExecutionCallback,the follower is code:
public void completed(final T result) {
try {
this.connPool.release(this.poolEntry, true);
} finally {
this.future.completed(result);
}
}
the connPool.release method need get the lock, release lock after and process the leasing request, if blocked while get the lock then the request future complete is delay, this may be trigger the tomcat thread found the handler is done but the request future is no done, lead to cancel the request ,no return result,but really is the request response is return; the code is :
private void initExecution(
final HttpAsyncClientExchangeHandler handler, final NHttpClientConnection conn) {
I also have a problem about the method of initExecution,why need the synchronized the context, the context is
bind with conn, the conn is hold by only one thread.please help me ,thanks