You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "ruslan.usifov (Created) (JIRA)" <ji...@apache.org> on 2012/01/26 13:07:40 UTC
[jira] [Created] (THRIFT-1509) proper interrup handle
proper interrup handle
----------------------
Key: THRIFT-1509
URL: https://issues.apache.org/jira/browse/THRIFT-1509
Project: Thrift
Issue Type: Bug
Components: PHP - Library
Affects Versions: 0.8, 0.7, 0.6.1
Reporter: ruslan.usifov
Attachments: 1509.patch
When interrup happent Tsoket wrong handle this situation. A work around is to sorount select system call in do-wile loop, Like this:
{code}
do
{
$writable = @stream_select($null, $write, $null, $this->sendTimeoutSec_, $this->sendTimeoutUsec_);
}
while($writable === false);
{code}
But here is some problem when stream_select return false in no interrup situation
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (THRIFT-1509) proper interrup handle
Posted by "ruslan.usifov (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/THRIFT-1509?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ruslan.usifov updated THRIFT-1509:
----------------------------------
Attachment: 1509.patch
> proper interrup handle
> ----------------------
>
> Key: THRIFT-1509
> URL: https://issues.apache.org/jira/browse/THRIFT-1509
> Project: Thrift
> Issue Type: Bug
> Components: PHP - Library
> Affects Versions: 0.6.1, 0.7, 0.8
> Reporter: ruslan.usifov
> Attachments: 1509.patch
>
>
> When interrup happent Tsoket wrong handle this situation. A work around is to sorount select system call in do-wile loop, Like this:
> {code}
> do
> {
> $writable = @stream_select($null, $write, $null, $this->sendTimeoutSec_, $this->sendTimeoutUsec_);
> }
> while($writable === false);
> {code}
> But here is some problem when stream_select return false in no interrup situation
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira