CFSocket & SSLHandshake
CFSocket & SSLHandshake
- Subject: CFSocket & SSLHandshake
- From: Dave Smith <email@hidden>
- Date: Thu, 31 Oct 2002 20:24:56 -0700
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.