Github user nsuke commented on the pull request:
https://github.com/apache/thrift/pull/945#issuecomment-201080750
> And a try-failed-retry logic is inefficient.
System calls are much more inefficient than exceptions, at least for Python.
Also refer to EAFP https://docs.python.org/2/glossary.html .
> the TSocket object is initialized as a parameter for initializing the
TTransport instance.
It's the same as TTransport for TProtocol.
Nothing wrong with accessing TTransport or TSocket API directly, not
through TProcotol.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---