Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 7edbbb3aa0149f8d9c94b10bbcc0fb850c44ddab
Ticket: 2762041fffffffffffffffffffffffffffffffff
Fix (too) early recognition of EOF in a channel stack
User & Date: ferrieux on 2010-02-23 05:37:20
Changes

  1. icomment:
    If you use strace on that example, you'll notice that all the OS-level I/O goes properly: the full 48 bytes of the stream get written and read over the pipe. Seven of these bytes get out as hahaha\n; so it is really a question of what happens to those buffered last 41 bytes and the subsequent EOF.
    
    write(4, "hahaha\n\37\213\10\0\0\0\0\0\0\3\355\3011\1\0\0\0\302\240l\353_\312\24~"..., 48) = 48
    close(4)                                = 0
    read(3, "hahaha\n\37\213\10\0\0\0\0\0\0\3\355\3011\1\0\0\0\302\240l\353_\312\24~"..., 4096) = 48
    write(2, "HEADER:hahaha", 13HEADER:hahaha)           = 13
    write(2, "\r\n", 2
    )                     = 2
    write(2, "Now reading through gunzip", 26Now reading through gunzip) = 26
    write(2, "\r\n", 2
    )                     = 2
    read(3, "", 4055)                       = 0
    
    
    
    
  2. login: "ferrieux"
  3. mimetype: "text/plain"
  4. username: "ferrieux"