mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-06 18:35:19 +00:00
THRIFT-4503: fix dlang server logging on client disconnect so it does not report an error for normal operation
This commit is contained in:
parent
6aa4c0f448
commit
641b139fd6
@ -140,7 +140,9 @@ class TSimpleServer : TServer {
|
||||
}
|
||||
}
|
||||
} catch (TTransportException ttx) {
|
||||
logError("Client died: %s", ttx);
|
||||
if (ttx.type() != TTransportException.Type.END_OF_FILE) {
|
||||
logError("Client died unexpectedly: %s", ttx);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
logError("Uncaught exception: %s", e);
|
||||
}
|
||||
|
@ -268,7 +268,9 @@ protected:
|
||||
}
|
||||
}
|
||||
} catch (TTransportException ttx) {
|
||||
logError("Client died: %s", ttx);
|
||||
if (ttx.type() != TTransportException.Type.END_OF_FILE) {
|
||||
logError("Client died unexpectedly: %s", ttx);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
logError("Uncaught exception: %s", e);
|
||||
}
|
||||
|
@ -173,7 +173,9 @@ private class WorkerThread : Thread {
|
||||
}
|
||||
}
|
||||
} catch (TTransportException ttx) {
|
||||
logError("Client died: %s", ttx);
|
||||
if (ttx.type() != TTransportException.Type.END_OF_FILE) {
|
||||
logError("Client died unexpectedly: %s", ttx);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
logError("Uncaught exception: %s", e);
|
||||
}
|
||||
|
@ -133,8 +133,6 @@
|
||||
"d-java_json_http-ip",
|
||||
"d-java_json_http-ip-ssl",
|
||||
"d-js_json_http-ip",
|
||||
"d-lua_json_buffered-ip",
|
||||
"d-lua_json_framed-ip",
|
||||
"d-nodejs_binary_buffered-ip",
|
||||
"d-nodejs_binary_buffered-ip-ssl",
|
||||
"d-nodejs_binary_framed-ip",
|
||||
|
Loading…
Reference in New Issue
Block a user