This is an automated email from the ASF dual-hosted git repository.

jensg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/thrift.git


The following commit(s) were added to refs/heads/master by this push:
     new 021cb27  THRIFT-5259 Fix "Transport endpoint is not connected " error 
when running lua test server accepts a connection Client: lua Patch: Zero 
<[email protected]>
021cb27 is described below

commit 021cb2707086a926ae49dcb9c1b7929472d0daa9
Author: Zero <[email protected]>
AuthorDate: Mon Aug 3 20:44:00 2020 +0800

    THRIFT-5259 Fix "Transport endpoint is not connected " error when running 
lua test server accepts a connection
    Client: lua
    Patch: Zero <[email protected]>
    
    This closes #2211
---
 lib/lua/src/usocket.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/lib/lua/src/usocket.c b/lib/lua/src/usocket.c
index 1a1b549..7c77651 100644
--- a/lib/lua/src/usocket.c
+++ b/lib/lua/src/usocket.c
@@ -89,12 +89,6 @@ T_ERRCODE socket_wait(p_socket sock, int mode, int timeout) {
     return TIMEOUT;
   }
 
-  // Verify that we can actually read from the remote host
-  if (mode & WAIT_MODE_C && FD_ISSET(*sock, &rfds) &&
-      recv(*sock, (char*) &rfds, 0, 0) != 0) {
-    return errno;
-  }
-
   return SUCCESS;
 }
 

Reply via email to