You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if I do not excute response.getChannel().deregister() ,the server will
throws IOExcption :
An existing connection was forcibly closed by the remote host ?
why???? the http client code has some mistake ?
The text was updated successfully, but these errors were encountered:
Are you fronting this with a proxy? We have a similar problem where HAProxy force closes the connection with RST and Netty returns a IOException when it tries to FIN the already closed connection. Ours reports as either this or Connection reset by peer. If it's something similar to this, it is because Netty is unopinionated about handling rude connection closes and forces the errors down into the handlers. My guess is they don't want to accidentally clobber any important unexpected behaviour.
Your best bet is to add
.catch(
e -> {
if (
einstanceOfIOException &&
"An existing connection was forcibly closed by the remote host.".equals(e.getMessage())
) {
returnObservable.empty();
} else {
returnObservable.throw(e);
}
}
)
if I do not excute response.getChannel().deregister() ,the server will
throws IOExcption :
An existing connection was forcibly closed by the remote host ?
why???? the http client code has some mistake ?
The text was updated successfully, but these errors were encountered: