Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

rethrow in RequestRead

19 views
Skip to first unread message

Steve Douglas

unread,
Aug 1, 2013, 5:36:38 AM8/1/13
to jabbe...@googlegroups.com
I've been using Jabber-net for an in-house project, and I've noticed that under some situations an InvalidOperationException ("Cannot call RequestRead while another read is pending.") is getting thrown in RequestRead, in AsyncSocket.

This then gets caught and handled by closing the socket. However, the handler then rethrows the exception. There's no other handler for the exception, therefore the entire thread dies, taking the application with it. Is this correct behaviour? Would it be better to fire an error in order to allow the application to handle the situation a bit more gracefully?


Reply all
Reply to author
Forward
0 new messages