Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 5c58656c7828c309fefc1a50a81653639ce4e5c5
Ticket: 222072ffffffffffffffffffffffffffffffffff
TLS (SSL) client loops before SSL becomes ready
User & Date: nobody on 2000-11-09 19:23:19
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    A non-blocking client socket is in a active wait (spending 100% of the CPU) state if he tries to write before the SSL is ready (detected using the SSL_is_finished function). This doesn't happen in the non-blocking version.
    
    It was detected using the test/simpleClient.tcl script available from the TLS extension, and using any SSL server from the Internet (the slower the server responds to the SSL handshake the worser).
    
    If compiling the TLS in debug we get the following message repeated:
    
    BIO_write(0x27a448, 16)
    WaitForConnect(0x27a448)
    BioRead(0x48fc20, <buf>, 7) [0x27a048]
    [0x27a048] BioRead(7) -> -1 [0.11]
    ERR(5, 11)
    Output(16) -> -1
    
    After writing to the socket once, the TlsOutputProc (the TLS output callback) keeps getting called in a cycle wasting 100% of CPU, until the SSL_is_init_finished function returns 1. 
    
    
  4. foundin changed to: "obsolete: 8.3"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "63. (unused)"
  10. title changed to: "TLS (SSL) client loops before SSL becomes ready"
  11. type changed to: "Bug"