Yes. I tried doing the same thing, in the same order. 'SslClose' fails after 'SslRead'. I get an error called 'sslErrEo' which means "You attempted to read or write a socket that isn't open.".
Now, this is obvious because in 'SslClose' the library talks to the server and closes the connection. Also, 'SslRead' returned '0' just before this call, which means the server which im talking to has closed the conneciton. Keeping this in mind i tried using the macro's sslError = SslContextSet_DontSendShutdown(sslLibRefUShort, sslContext, true); sslError = SslContextSet_DontWaitForShutdown(sslLibRefUShort, sslContext, true); and sslError = SslLibSet_DontSendShutdown(sslLibRefUShort, sslContext, true); sslError = SslLibSet_DontWaitForShutdown(sslLibRefUShort, sslContext, true); to avoid any communication between with the server during 'SslClose'. But after trying this too, 'SslClose' returns the same error(even putting it in a while loop till 'errNone' doesnt work :-) ) due to which sslError = SslContextDestroy(sslLibRefUShort, sslContext); fails!. And fails badly at that, the OS crashes at this point! Any ideas? :-) Rakesh. "Philippe Fischer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi Rakesh, > have you already tested this way to close the SSL connection ? > > SslClose( SslLibRefnum, context, sslCloseUseDefaultTimeout, 0); > SslContextDestroy( SslLibRefnum, context ); > SslLibDestroy( SslLibRefnum, contextTemplate ); > > Maybe the last function call is only necessary when quitting the app. > In my app this works fine, even when establishing the second SSL connection > with another server. > > > Best regards > > Philippe > > ----- Original Message ----- > From: "Rakesh Pai" <[EMAIL PROTECTED]> > Newsgroups: palm-dev-forum > To: "Palm Developer Forum" <[EMAIL PROTECTED]> > Sent: Friday, November 14, 2003 2:49 AM > Subject: SSL problems again...more than one connection fails > > > > Hi All, > > I managed to get the SslLib.lib working. Thanx for ur help in reaching > > there. :-) > > But it seems the Lib doesnt work as documented. I need to make 2 or more > ssl > > connections one after the other, but im having problems when i try to do > > that. The Api's start failing such that the simulator crashes many times. > > After successfully making a ssl connection and getting a response, i need > to > > make successive ssl connectioins to other servers. For which i assumed i > > would have to close the session and destroy the context(the documentation > > says the same context may be used btw). Ive tried all permutations and > > combinations so far , but somehow after the first successful read (using > > SslRead) 'SslClose' fails(putting it in a loop also doesnt work). Due to > > this the other Api's like SslContextDestroy and all the others fail too. > > Have u guys faced similar problems, if yes pls let me know the way out. > > > > Thanx, > > Rakesh > > > > > > "Reality is an illusion, although a persistent one" > > ~ Albert Einstein ~ > > > > "Temporary constructs of a feeble human > > intellect trying desperately to justify an > > existence that is without meaning or > > purpose" > > ~Agent Smith~ > > > > > > > > -- > > For information on using the Palm Developer Forums, or to unsubscribe, > please see http://www.palmos.com/dev/support/forums/ > > > > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
