-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes to completion of RequestManager in HttpMode #278
Conversation
Signed-off-by: Lachlan Roberts <[email protected]>
Signed-off-by: Lachlan Roberts <[email protected]>
@gregw @ludoch the error still occurs after these changes, and I can see that for Jetty94, the So I do not know why we get the error "the API call to datastore_v3.Put() was explicitly cancelled". Because we are not out of the scope of the request because we have not called |
Thanks Lachlan for the deep investigation. Its indicates that where the issue is: in the backend C++ api server and request manager, which has a potential of race condition between the end of the request and the 'release' of the API ticket necessary to do the last datastore put to store the session... |
Filed #279 |
Signed-off-by: Lachlan Roberts <[email protected]>
...me_impl_jetty12/src/main/java/com/google/apphosting/runtime/jetty/http/JettyHttpHandler.java
Outdated
Show resolved
Hide resolved
...me_impl_jetty12/src/main/java/com/google/apphosting/runtime/jetty/http/JettyHttpHandler.java
Show resolved
Hide resolved
...me_impl_jetty12/src/main/java/com/google/apphosting/runtime/jetty/http/JettyHttpHandler.java
Show resolved
Hide resolved
...runtime_impl_jetty9/src/main/java/com/google/apphosting/runtime/jetty9/JettyHttpHandler.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Lachlan Roberts <[email protected]>
Working on the server side fix in C++ |
can we abandon this PR as we now ignore CANCEL error and the C++ code push is going on to remove it? |
* Fix HttpServletRequest.getRemoteAddr for the HttpConnector mode Signed-off-by: Lachlan Roberts <[email protected]> * assign a static field for "0.0.0.0" string Signed-off-by: Lachlan Roberts <[email protected]> --------- Signed-off-by: Lachlan Roberts <[email protected]>
Signed-off-by: Lachlan Roberts <[email protected]>
I think this PR is still good good to have as it prevents |
closing as it looks like the changes have already been included in main branch |
For the HttpConnector mode we now do not call
RequestManager#finishRequest
until we getHttpStream
completion in Jetty12, orHttpChannel
completion in Jetty-9.4.