[
https://issues.apache.org/jira/browse/THRIFT-948?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14390586#comment-14390586
]
Vitaly Repin edited comment on THRIFT-948 at 4/1/15 2:08 PM:
-------------------------------------------------------------
Patch against Thrift 0.9.2 sources
It works (for me :-) ) but I have a question to the PHP guys.
In order for the functionality to work I needed to replace
calls to stream_socket_sendto and stream_socket_recvfrom in TSocket.php with
calls to fwrite and fread.
Otherwise, script wroted (and tried to receive) unencrypted content to the
network (as I saw with wireshark). Hence, it was not able to communicate with
the server.
When I took fread and fwrite into use, everything started to work. But I don't
have any idea why fread/fwrite work so differently from stream_socket php API.
Did not tested TSSLSocketPool
was (Author: vitaly_repin):
Patch against Thrift 0.9.2 sources
It works (for me :-) ) but I have a question to the PHP guys.
In order for the functionality to work I needed to replace
calls to stream_socket_sendto and stream_socket_recvfrom in TSocket.php with
calls to fwrite and fread.
Otherwise, script wroted (and tried to receive) unencrypted content to the
network (as I saw with wireshark). Hence, it was not able to communicate with
the server.
When I took fread and fwrite into use, everything started to work. But I don't
have any idea why :-)
Did not tested TSSLSocketPool
> SSL socket support for PHP
> --------------------------
>
> Key: THRIFT-948
> URL: https://issues.apache.org/jira/browse/THRIFT-948
> Project: Thrift
> Issue Type: New Feature
> Components: PHP - Library
> Reporter: David Reiss
> Priority: Minor
> Attachments: php-ssl-0.9.2.patch, php-ssl.patch
>
>
> This had some basic testing, but was never used in production. If someone
> wants to implement this feature, they can start with this patch.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)