Hi! When using a timeout (setTimeout()) in my derived TCPSession class, my app dies with a message "Abort" on timeout. No exceptions are thrown. My code looks something like this:
setTimeout(2000); try { char c = tcp()-get(); } catch( ... ) { std::cout << "error!" << std::endl; }
Is there something I'm missing?
Log in to post a comment.
Hi!
When using a timeout (setTimeout()) in my derived TCPSession class, my app dies with a message "Abort" on timeout.
No exceptions are thrown.
My code looks something like this:
setTimeout(2000);
try {
char c = tcp()-get();
} catch( ... ) {
std::cout << "error!" << std::endl;
}
Is there something I'm missing?