THRIFT-4503: fix dlang server logging on client disconnect so it does not report an error for normal operation

This commit is contained in:
James E. King III 2018-03-03 12:00:05 -05:00
parent 6aa4c0f448
commit 641b139fd6
4 changed files with 9 additions and 5 deletions

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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",