Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 94f8d3a8ce6ff7d65a1fd2314c0bbd13f9bcd8f3
Ticket: 5bfe3de008e6f7b5863619a4f9c801d040ff5ab8
^Z appended to sourced VFS files
User & Date: sebres on 2017-08-10 09:35:27
Changes

  1. icomment:
    > The custom VFS is responsible for translating the former to the latter, and it's so much easier to just say "read write" always
    
    FWIW: Reflected channel can use custom configure-options, this can be used to transmit the mode to its handler...
    
    Bellow is an excerpt example from my own fcgi-reflected channels:
    
    <code><pre>
      proc initialize {ch args} {
        return {... configure ...}
      }
      proc configure {ch args} {
        foreach {n v} $args {
          switch -- $n \
          "-open-mode" {
            # ... change here the mode ...
            if {$v ni {w w a a+ ...}} { ... reset writable }
          } \
          "-add-header" {
            addHeader {*}$v
          } \
          "-end-request" {
            endRequest {*}$v
          } \
          ...
        }
      }
      ...
      # notice reflected channel handler the open mode:
      configure $ch -open-mode $mode
    </pre></code>
    
  2. login: "sebres"
  3. mimetype: "text/x-fossil-wiki"