[ 
https://issues.apache.org/jira/browse/THRIFT-5725?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jens Geyer updated THRIFT-5725:
-------------------------------
    Fix Version/s:     (was: 0.19.0)

> Thrift SSL server stops working if the file descriptor returned is zero
> -----------------------------------------------------------------------
>
>                 Key: THRIFT-5725
>                 URL: https://issues.apache.org/jira/browse/THRIFT-5725
>             Project: Thrift
>          Issue Type: Bug
>          Components: C++ - Library
>    Affects Versions: 0.19.0
>            Reporter: Prasenjit Sarkar
>            Assignee: Prasenjit Sarkar
>            Priority: Critical
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> When the Thrift OpenSSL server gets a file descriptor of 0 (which is valid), 
> the server stops working and cannot accept new connections because of the 
> following code in TSSLSocket.cpp:
>  
> {code:java}
> if (BIO_get_fd(bio, &fdSocket) <= 0)
> { throw TSSLException("BIO_get_fd failed"); }
> {code}
>  
> The fix would be to just change the comparison from <= to <



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to