[ https://issues.apache.org/jira/browse/THRIFT-1723?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Justin Judd updated THRIFT-1723: -------------------------------- Description: This patch adds three major features 1) Mutual Authentication a) Services can validate client certificates b) Clients can use a certificate during a connection to a service c) Validation callback can be provided to handle validation as appropriate for your situation 2) Stop python services Other languages had the ability to gracefully stop services. Followed java server and socket construction to add stop capability into python 3) Dynamic port binding If you create a socket with port=0, the system will find an open port and bind to it. This was possible before, but you could not get the information from the object about which port it bound to. I split up the listen() method of the socket into 2 different parts. You can use it as before with no changes( just call server.serve() ), or if you want the socket data, you call .setup() on the socket( server.serverTransport.setup().getsockname() if you want the socket information ) was: This patch adds two major features 1) Mutual Authentication a) Services can validate client certificates b) Clients can use a certificate during a connection to a service c) Validation callback can be provided to handle validation as appropriate for your situation 2) Stop python services a) Other languages had the ability to gracefully stop services b) Followed java server and socket construction to add stop capability into python Summary: Number of Python features- Mutual Authentication, abiltity to stop services, dynamic port binding (was: Number of Python features- Mutual Authentication, abiltity to stop services) > Number of Python features- Mutual Authentication, abiltity to stop services, > dynamic port binding > ------------------------------------------------------------------------------------------------- > > Key: THRIFT-1723 > URL: https://issues.apache.org/jira/browse/THRIFT-1723 > Project: Thrift > Issue Type: New Feature > Components: Python - Library > Reporter: Justin Judd > Attachments: python_thrift.diff > > > This patch adds three major features > 1) Mutual Authentication > a) Services can validate client certificates > b) Clients can use a certificate during a connection to a service > c) Validation callback can be provided to handle validation as appropriate > for your situation > 2) Stop python services > Other languages had the ability to gracefully stop services. Followed java > server and socket construction to add stop capability into python > 3) Dynamic port binding > If you create a socket with port=0, the system will find an open port and > bind to it. This was possible before, but you could not get the information > from the object about which port it bound to. I split up the listen() method > of the socket into 2 different parts. You can use it as before with no > changes( just call server.serve() ), or if you want the socket data, you call > .setup() on the socket( server.serverTransport.setup().getsockname() if you > want the socket information ) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira