Recently, in the project MMIM, the TCP layer of MSRP module often threw an IOException (EOF Exception). In the exception trace stack, there is without any our code, so it was not easy to find the cause. But because this exception did not happen before, so I still believe this exception was caused by our code or something else. One of most possible reason to cause IOException is the connection broken, and there are two kinds of connection broken, the server side broken and the client side broken. So I tested this two scenarios, then found that if the server side to broke the connection, there is no exception, but the client to broke the connection will cause that exception. Then I checked the client side. Finally, I found it caused by the Tcl script to terminate MSRP Client before SIP layer sent BYE to terminate the MSRP session.
No comments:
Post a Comment