changeset 1196:9ff57791a5ab

Fix worker name as the connection is not created yet
author Sebastien Decugis <sdecugis@freediameter.net>
date Tue, 11 Jun 2013 14:46:58 +0800
parents 16f2d2f15e5b
children 823829bf1037
files libfdcore/server.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libfdcore/server.c	Tue Jun 11 14:05:33 2013 +0800
+++ b/libfdcore/server.c	Tue Jun 11 14:46:58 2013 +0800
@@ -146,7 +146,7 @@
 	/* Set the thread name */
 	{
 		char buf[48];
-		snprintf(buf, sizeof(buf), "Worker#%d@%s", pw->id, fd_cnx_getid(s->conn));
+		snprintf(buf, sizeof(buf), "Worker#%d[%s%s]", pw->id, IPPROTO_NAME(s->proto), s->secur?", Sec" : "");
 		fd_log_threadname ( buf );
 	}
 	
"Welcome to our mercurial repository"