jjzhang / booth

The Booth Cluster Ticket Manager
GNU General Public License v2.0
16 stars 37 forks source link

fix tcp connection always retry #6

Closed thesues closed 12 years ago

thesues commented 12 years ago

when booth client close connection remotelly, boothd site can not close its own fd. this patch would fix this, I think

commit df4804ce6f14d6f5b4020c5a7f5070eb1f32d930 Author: root root@linux-x5e9.site Date: Wed Mar 7 12:51:15 2012 +0800

fix tcp always re-connect 

diff --git a/src/main.c b/src/main.c index d4f62da..0d16307 100644 --- a/src/main.c +++ b/src/main.c @@ -41,6 +41,7 @@

include "timer.h"

include "pacemaker.h"

include "ticket.h"

+#include

define RELEASE_VERSION "1.0"

@@ -257,10 +258,22 @@ void process_connection(int ci) char data = NULL; char site, *ticket; int local, rv;