mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Matthew Swift
10.19.2016 1ad3e7a6cb2b455c4f230e4b5defc14b931583f4
refs
author Matthew Swift <matthew.swift@forgerock.com>
Thursday, November 10, 2016 14:19 +0100
committer Matthew Swift <matthew.swift@forgerock.com>
Thursday, November 10, 2016 14:19 +0100
commit1ad3e7a6cb2b455c4f230e4b5defc14b931583f4
tree 906ce8b95dd3fb337d4a0617481925728abadd83 tree | zip | gz
parent 4ddad520769d2b527f82f0d0c23822c3c5e1f1ba view | diff
Minor fix: let the result handler complete the request processing

Without this fix the example Proxy never returns responses to the client
application causing the client to hang indefinitely.

The proxy is asynchronous, so the client side response handler (emitter)
must be completed on completion of the proxied request. Before this
change the proxy would forward the request, then complete the response
handler, and only later receive the response to the proxied operation.
When it then tried to forward the results to the client it would
discover that the client's request had been cancelled.
1 files modified
1 ■■■■ changed files
opendj-core/src/main/java/com/forgerock/reactive/ServerConnectionFactoryAdapter.java 1 ●●●● diff | view | raw | blame | history