From 2bfb26cdedb7f776524502f2ce92dddc83a09ff8 Mon Sep 17 00:00:00 2001 From: Andy2 Date: Sun, 17 Oct 2010 06:38:28 -0700 Subject: [PATCH] sleep (in thread) before closing proxy socket. This works around problem where, on PRX_HAS_MSGS path only, device reading socket gets EOF early though logging here confirms additional bytes have been written. Gross but effective. --- xwords4/relay/xwrelay.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/xwords4/relay/xwrelay.cpp b/xwords4/relay/xwrelay.cpp index 952ba367e..6df69c046 100644 --- a/xwords4/relay/xwrelay.cpp +++ b/xwords4/relay/xwrelay.cpp @@ -750,6 +750,7 @@ handle_proxy_tproc( void* closure ) } } } + sleep( 2 ); close( sock ); return NULL; } /* handle_proxy_tproc */