Re: CFSocket & SSLHandshake
Re: CFSocket & SSLHandshake
- Subject: Re: CFSocket & SSLHandshake
- From: Dave Smith <email@hidden>
- Date: Thu, 31 Oct 2002 22:37:35 -0700
I built a sample project that demonstrates the weird behaviour I'm
seeing. At this point, I'm thinking "stupid SecureTransport"... but I
realize it may be more appropriate to think "stupid Dizzy" :)
Thanks. :)
diz
[demime 0.98b removed an attachment of type application/x-gzip which had a name of ssldemo.tar.gz]
On Thursday, Oct 31, 2002, at 20:24 America/Denver, Dave Smith wrote:
>
Greetings...
>
>
I've been working on a Cocoa wrapper for CFSocket that also takes
>
advantage of the SSL functionality in the Security framework. My
>
socket wrapper works just dandy for non-SSL connections -- CFSocket
>
makes life easy. However, I'm seeing some very strange issues when I
>
create and destroy several SSL connections in sequence. I'm working on
>
creating a simple, sample test program that can demonstrate. For the
>
moment, though, I do have a symptom to report.
>
>
I'm using a BSD socket in non-blocking mode. The first time I call
>
SSLHandshake, everything is fine -- I may have to call it twice,
>
depending on network conditions -- but I get a normal (read: 0) result
>
code. Second time through, I've constructed a new CFSocket, new
>
wrapper, etc. On this pass, my first call to SSLHandshake returns
>
errSSLWouldblock. I call SSLHandshake again and I get a warning on the
>
console:
>
>
*** malloc_zone_malloc[803]: argument too large: -69
>
>
SSLHandshake then returns an error code of -50. Obviously this
>
is...sub-optimal. :)
>
>
Has anyone seen anything like this before?
>
>
Thanks. :)
>
>
diz
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.