Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 82866ca4d275ddaba8e79272c0594bbb095088b5
Ticket: 1869405fffffffffffffffffffffffffffffffff
gets returns crap on tls-channels
User & Date: nobody on 2008-01-11 15:43:16
Changes

  1. assignee changed to: "andreas_kupries"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Command "gets" in tcl8.5 returns invalid data when reading from a tls-channel in binary mode.
    Tcl8.4.16 returns valid data.
    
    example:
    
    ##############################################
    # start a ssl server with
    
    openssl s_server -cert cert.pem -key key.pem -www
    
    ##############################################
    # run the following tcl script:
    
    package require tls
    set chan [::tls::socket 127.1 4433]
    puts -nonewline $chan "GET / HTTP/1.0\r\n"
    flush $chan
    fconfigure $chan -encoding binary -translation binary
    while {[gets $chan LINE] >= 0} {puts $LINE}
    
    ###############################################
    
  4. foundin changed to: "obsolete: 8.5.0"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "nobody"
  10. subsystem changed to: "25. Channel System"
  11. title changed to: "gets returns crap on tls-channels"
  12. type changed to: "Bug"