openssl/openssl — pull request #166 by glacjay (2014-08-28 08:16:41+00:00)
Title: fix renegotiation error under full duplex flow

When `ssl3_write_bytes` failed because handshaking but there are pending application data, just try to send using current state.

The test case is:

server command:
```
yes "hello client" | openssl s_server -accept 1111 -state -CAfile ca.pem -cert server.pem -key server.pem
```

client command:
```
yes R | openssl s_client -connect localhost:1111 -state
```