Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 83f27961380e3282ae035f98e65e027aa79c70dd
Ticket: 3472316fffffffffffffffffffffffffffffffff
fconfigure <sock> -error called twice in Connect
User & Date: patthoyts on 2012-01-13 04:34:42
Changes

  1. icomment:
    I'm not really sure why this didn't just get rolled into the documentation fix. Someone with more familiarity with fossil can apply this:
    Index: library/http/http.tcl
    ===================================================================
    --- library/http/http.tcl
    +++ library/http/http.tcl
    @@ -864,13 +864,13 @@
         variable $token
         upvar 0 $token state
         global errorInfo errorCode
         if {
            [eof $state(sock)] ||
    -       [string length [fconfigure $state(sock) -error]]
    +       [string length [set sockerr [fconfigure $state(sock) -error]]]
         } then {
    -       Finish $token "connect failed [fconfigure $state(sock) -error]" 1
    +       Finish $token "connect failed $sockerr" 1
         } else {
            set state(status) connect
            fileevent $state(sock) writable {}
         }
         return
    
    
  2. login: "patthoyts"
  3. mimetype: "text/plain"
  4. username: "patthoyts"