eclipse-vertx / eclipse-vertx/vert.x

More specific exceptions for exceeded socket timeouts

Open
#4,675 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
14.7k
Forks
2.1k
Avg merge
2d 7h
Merged PRs (30d)
28

Description

#### Describe the feature

It's common to get a Socket Closed exception when exceeding various timeouts (connection timeout, idle timeout, read timeout, write timeout). In my experience it can be frustrating to figure out where these errors are coming from because the stack trace is pruned for performance reasons. Can we switch these out for more specific exceptions to let users know _why_ the socket was closed and _what kind_ of socket timed out?
Ex. `SocketConnectionTimeoutException("Server Socket connection timed out after X seconds")` and `SocketIdleTimeoutException("Http Client Socket timed out from no read/write activity after X seconds")`

#### Use cases

Help users debug cases where default timeouts aren't long enough for their use-cases. Or where timeouts have been improperly configured

#### Contribution

I may be able to implement this with some direction.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.