Hi, I am a student at an Indian university where you can only connect to internet through proxy server. Thus, directly using (hostname, port) to construct TSocket object is not possible (connection will get refused). But if thrift exposes TSocket(int socket) constructor to public and removes two ALREADY_OPEN check, a user behind proxy can first negotiate a CONNECT request with proxy server using raw socket and then use that to open connection for further thrift usage.
Just a small request and waiting for your suggestions. Rajat Goel