handled secure socket exception #4313
This commit is contained in:
parent
767802f111
commit
ad230d46e6
|
@ -18,6 +18,7 @@
|
||||||
|
|
||||||
#include "mt/Thread.h"
|
#include "mt/Thread.h"
|
||||||
|
|
||||||
|
#include "net/XSocket.h"
|
||||||
#include "mt/XMT.h"
|
#include "mt/XMT.h"
|
||||||
#include "mt/XThread.h"
|
#include "mt/XThread.h"
|
||||||
#include "arch/Arch.h"
|
#include "arch/Arch.h"
|
||||||
|
@ -158,6 +159,10 @@ Thread::threadFunc(void* vjob)
|
||||||
LOG((CLOG_DEBUG1 "thread 0x%08x exit", id));
|
LOG((CLOG_DEBUG1 "thread 0x%08x exit", id));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
catch (XSocket& e) {
|
||||||
|
// client called cancel()
|
||||||
|
LOG((CLOG_DEBUG "%s", e.what()));
|
||||||
|
}
|
||||||
catch (XThreadCancel&) {
|
catch (XThreadCancel&) {
|
||||||
// client called cancel()
|
// client called cancel()
|
||||||
LOG((CLOG_DEBUG1 "caught cancel on thread 0x%08x", id));
|
LOG((CLOG_DEBUG1 "caught cancel on thread 0x%08x", id));
|
||||||
|
|
Loading…
Reference in New Issue