SSL Protocol Hand-Shaking Problem

I have a HP-UX 10.01 HTTPS client which is performing
several HTTPS POST operations.

Eventually at some point one of my POST calls goes
into an unexplaind cycle with the following information
dumping to the log file:

Host Event.. READ passed to `https://.......'
HTTPEvent..state..HTTP_CONNECTED
HTTPEvent...event.HTEvent_READ
HTSSLReader_read 40029a48
HTSSLReader me->write(00000000) >= me->read(00000000)
HTSSLReader. SSL returned 2
HTSSLReader. WOULD BLOCK fd 5
Host Event.. FLUSH passed to `https://.......'
HTTPEvent..state..HTTP_CONNECTED
HTTPEvent...event.HTEvent_FLUSH
Host Event.. READ passed to `https://........'                       
HTTPEvent..state..HTTP_CONNECTED
HTTPEvent...event.HTEvent_READ
HTSSLReader_read 40029a48
HTSSLReader me->write(00000000) >= me->read(00000000)
HTSSLReader. SSL returned 2

This repeates for about a hundrec times before changing to

HTTPEvent..state..HTTP_CONNECTED
HTTPEvent...event.HTEvent_READ
HTSSLReader_read 40029a48
HTSSLReader me->write(00000000) >= me->read(00000000)
HTSSLReader. SSL returned 5
HTSSLReader. FIN received on socket 5
Timer....... Deleted active timer 40037830
Event....... No more events registered for socket 5
Event....... Reset MaxSock from 5 to 1
Event....... Socket 5 unregistered for HTEvent_READ
Event....... Couldn't find socket 5. Can't unregister type HTEvent_WRITE
HTSSL....... Closing SSL Object 40031ce0
HTSSL Free.. ref_count = 1
HTTPEvent....HTTP_RECOVER_PIPE
HTTPEvent....HTTP_OK
HTTP Clean.. Called with status -1, net 400298d8
Timer....... Deleted active timer 40037860
Net Object.. Delete 400298d8 and call AFTER filters
Host info... Remove 400298d8 from pipe
Host Object. closing socket 5

and having a FATAL error at this point where no more calls work when
SSL is involved.

Also, I seem to be getting the following messages consistantly

SSL_connect: SSLv3 read server hello A        
SSL_connect: SSLv3 read server certificate A  
SSL_connect: SSLv3 read server done A         
SSL_connect: SSLv3 write client key exchange A
SSL_connect: SSLv3 write change cipher spec A 
SSL_connect: SSLv3 write finished A           
SSL_connect: SSLv3 flush data                 
SSL_connect: error in SSLv3 read finished A   
SSL_connect: error in SSLv3 read finished A   

   then some more exchanges of the type

HTTPEvent..state..HTTP_CONNECTED                     
HTTPEvent...event.HTEvent_FLUSH                      
Buffer...... Flushing 40031858                       
HTSSLWriter_write 40031838 bytes 432                 
SSL_connect: error in SSLv3 read finished A          
HTSSLWriter. SSL returned 2                          
HTSSLWriter_write 40031838 want read                 
HTSSLReader_read 40029810                            
HTSSLReader me->write(00000000) >= me->read(00000000)
SSL_connect: error in SSLv3 read finished A          
HTSSLReader. SSL returned 2                          
HTSSLReader. WOULD BLOCK fd 4                        

  until eventually there is the sequence

HTTPEvent..state..HTTP_CONNECTED    
HTTPEvent...event.HTEvent_FLUSH     
Buffer...... Flushing 40031858      
HTSSLWriter_write 40031838 bytes 432
HTSSLWriter. SSL returned 0         
HTSSLWriter. 432 bytes written to 4 
Writing 1Kbytes                     

At this time it seems that the SSL handshaking has 
completed and the oepration can proceed.  This may
possibly be the root of my problems in the first part.
Is there any way in which I can cause a delay/or change
an existing one to allow the SSL handshaking more time
to complete?

Any help would be appreciated.

Received on Thursday, 2 November 2000 14:24:07 UTC