Skip to content

Commit

Permalink
Fixed failing test.
Browse files Browse the repository at this point in the history
Any server that processes the request in a different thread, should flush explicitly.
  • Loading branch information
Nitesh Kant committed Jul 5, 2014
1 parent 45f00a0 commit 09aec45
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package io.reactivex.netty.contexts.http;

import com.netflix.server.context.ContextSerializationException;
Expand Down Expand Up @@ -249,7 +250,7 @@ public Observable<Void> handle(HttpServerRequest<ByteBuf> request,
@Override
public Observable<Void> call(HttpClientResponse<ByteBuf> response) {
serverResponse.setStatus(response.getStatus());
return Observable.empty();
return serverResponse.close(true);
}
});
}
Expand Down

0 comments on commit 09aec45

Please sign in to comment.