You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Vitaly Repin (JIRA)" <ji...@apache.org> on 2015/04/01 16:05:52 UTC
[jira] [Comment Edited] (THRIFT-948) SSL socket support for PHP
[ 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:04 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 :-)
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 :-)
> 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)