thrift-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Craig Artley <>
Subject Avoiding "client died" TTransportExceptions?
Date Tue, 19 May 2015 19:19:56 GMT
While doing some debugging of my server, I noticed that after my handler method returns, another
connection is received which immediately fails with an empty TTransportException. The exception
stack trace is below.

These are normally silently swallowed by empty catch blocks in TSimpleServer and TThreadPoolServer
that look like this
      } catch (TTransportException ttx) {
        // Client died, just move on   // Line 89,

Here's the exception.

    at org.apache.thrift.transport.TTransport.readAll(
    at org.apache.thrift.protocol.TBinaryProtocol.readAll(
    at org.apache.thrift.protocol.TBinaryProtocol.readI32(
    at org.apache.thrift.protocol.TBinaryProtocol.readMessageBegin(
    at org.apache.thrift.TBaseProcessor.process(
    at org.apache.thrift.server.TSimpleServer.serve(

My question is, am I doing something wrong to trigger this extra connection? This happens
when the service method returns in the client, before the client gets a chance to call TTransport.close.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message