how to disable throwing Exceptions or fillInStackTrace() in Java

250 Views Asked by At

I am trying to make my application fast. It relies on multi threaded http requests. Each time a request gets an error, it seems, the entire program slows down...(even though the requests are on separate threads) I figure this may be due to fillInStackTrace( ) or something like that... I would love to disable it in the Throwable class but I am not able to get into it. Is there a solution ?

The exceptions come from AbstractPlainSocketImpl or SocketInputStream : basically failed internet connections etc.

0

There are 0 best solutions below