Thriftpy/thriftpy

Always got a log timeout

h3l opened this issue · 1 comments

h3l commented

In https://github.com/eleme/thriftpy/blob/develop/thriftpy/server.py#L58,
just catch Exception, But when I use like Thriftpy/gunicorn_thrift#45 said, in a sync way, the server always got a timeout like Thriftpy/thrift_connector#48 said.
so, could catch socket.error and just log a timeout instead of a full error stack?

h3l commented

i found this message is log from gunicorn thrift