Skip to content

Commit b296ae9

Browse files
cdw8jok2c
authored andcommitted
keep RequestListener thread running when an exception occurs during connection creation or in worker execution
1 parent 9e93795 commit b296ae9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

httpcore5/src/main/java/org/apache/hc/core5/http/impl/bootstrap/RequestListener.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public void run() {
135135
this.executorService.execute(worker);
136136
} catch (final IOException | RuntimeException ex) {
137137
Closer.closeQuietly(socket);
138-
throw ex;
138+
this.exceptionListener.onError(ex);
139139
}
140140
}
141141
} catch (final Exception ex) {

0 commit comments

Comments
 (0)