File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
src/main/java/org/javawebstack/httpserver/adapter/untertow Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 11package org .javawebstack .httpserver .adapter .untertow ;
22
3+ import io .undertow .server .BlockingHttpExchange ;
34import io .undertow .server .HttpServerExchange ;
45import io .undertow .util .HeaderValues ;
56import io .undertow .util .HttpString ;
1617public class UndertowHTTPSocket implements IHTTPSocket {
1718
1819 private final HttpServerExchange exchange ;
20+ private final BlockingHttpExchange blockingExchange ;
1921
2022 public UndertowHTTPSocket (HttpServerExchange exchange ) {
2123 this .exchange = exchange ;
24+ this .blockingExchange = exchange .startBlocking ();
2225 }
2326
2427 public InputStream getInputStream () throws IOException {
@@ -30,6 +33,7 @@ public OutputStream getOutputStream() throws IOException {
3033 }
3134
3235 public void close () throws IOException {
36+ blockingExchange .close ();
3337 exchange .endExchange ();
3438 }
3539
You can’t perform that action at this time.
0 commit comments