async-http-client icon indicating copy to clipboard operation
async-http-client copied to clipboard

replace TimeoutException with RequestTimeoutException or ReadTimeoutException

Open wtog opened this issue 6 years ago • 0 comments

Both Request timeout and Read timeout throw the same java.util.concurrent.TimeoutException java.util.concurrent.TimeoutException: Request timeout to www.baidu.com after 3000 ms

it`s not convenient to catch the real exception

i suggest to throw AhcRequestTimeoutException And AhcReadTimeoutException instead of logging the timeout message in RequestTimeoutTimerTask.java or ReadTimeoutTimerTask.java

wtog avatar Jul 10 '19 01:07 wtog