Added more logging around the base task ops.
This commit is contained in:
parent
febce5eb8d
commit
5e79fba1b4
|
@ -27,9 +27,12 @@ class TaskPoolHttp1Transport : Http1Transport {
|
||||||
|
|
||||||
while (super.isRunning) {
|
while (super.isRunning) {
|
||||||
try {
|
try {
|
||||||
|
trace("Waiting to accept a new socket.");
|
||||||
Socket clientSocket = serverSocket.accept();
|
Socket clientSocket = serverSocket.accept();
|
||||||
|
trace("Accepted a new socket.");
|
||||||
auto t = task!handleClient(clientSocket, requestHandler);
|
auto t = task!handleClient(clientSocket, requestHandler);
|
||||||
taskPool().put(t);
|
taskPool().put(t);
|
||||||
|
trace("Added handleClient() task to the task pool.");
|
||||||
} catch (SocketAcceptException e) {
|
} catch (SocketAcceptException e) {
|
||||||
warn("Failed to accept socket connection.", e);
|
warn("Failed to accept socket connection.", e);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue