B4J Question Catching socket exception

Dan Haugland

Member
Licensed User
Using a socket and asyncstreams to communicate with another app on a separate box. All good until the upstream process goes away, then my client logs a java.net.SocketException: connection reset error. How do I trap that so I can do something graceful? Neither the stream_error nor _terminated event fires in this situation and the socket doesn't seem to have any events to tell me about it.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…