|
Boost : |
From: Christopher Kohlhoff (chris_at_[hidden])
Date: 2006-07-13 08:47:44
Hi Scott,
Scott <cheesy4poofs_at_[hidden]> wrote:
> Using the same certificates and key files from the sample
> code, I added the handshaking and got our client and server to
> communicate. It all seemed great at first, because it seemed
> to seemlessly work. But eventually the communications break
> down. I either get asserts in my code from unexpected data in
> the stream, or the client hangs waiting for data that never
> appears or any of several different stream problems. It's
> rarely the exact same thing. But it eventually always fails.
> Especially on long sustained transfers.
Is your program single or multithreaded? Any chance you can boil
it down to a test program? What version of OpenSSL are you
using?
> I have no idea what I might be doing wrong. There's really no
> documentation at all on ASIO and SSL. For all I know, it
> might be a problem with the SSL implementation in ASIO.
Sounds like a bug to me.
> Which brings me to my question - has anybody successfully used
> the SSL classes in ASIO on complex projects? If so, that
> would point to a problem in my code somewhere. Perhaps I need
> to do more than just add the initial SSL handshake (aside from
> using the SSL stream beyond that point)?
No, once you've done the handshake it should work.
Cheers,
Chris
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk