Skip to content

Not throw an exception when the client closes the connection #915

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

Merged
merged 1 commit into from
May 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,8 @@ public ClassicHttpRequest receiveRequest() throws HttpException, IOException {
this.inbuffer.clear();
final int i = this.inbuffer.readLine(headLine, this.in);
if (i == -1) {
throw new IOException("readLine() from SessionInputBufferImpl returned -1 in method receiveRequest()");
//throw new IOException("readLine() from SessionInputBufferImpl returned -1 in method receiveRequest()");
return null;
}

final Header[] headers = AbstractMessageParser.parseHeaders(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public void handleRequest(final AxisHttpConnection conn, final HttpContext local
try {
request = conn.receiveRequest();
if (request == null) {
LOG.error("AxisHttpService.handleRequest() returning on null request, will close the connection");
LOG.info("AxisHttpService.handleRequest() returning on null request, will close the connection");
conn.close();
return;
}
Expand Down