Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 1025566ebd34ab29f0aa59d4828db05ff3075b20
Ticket: c6b86cbfe4a1e14017a933f60afb33a4b980e2d5
non-blocking IO write truncation
User & Date: pokute on 2016-04-15 16:49:51
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    I have been sending mail through exim using a non-blocking Tcl pipe for many years. After upgrading to Debian Jessie, the mail is truncated.
    
    The code that now fails to send the full stream (truncates to 64k) after working for many years:
    
            set pipe [ open "|$sendmail -oi -t" a+ ]
            fconfigure $pipe -blocking off
            fconfigure $pipe -buffering line
            puts $pipe $mail
            ::close $pipe
    
    Turning blocking on fixes the truncation issue. I'm not saying that the current behavior is wrong, just that it is changed.
    
  5. foundin changed to: "8.6 (Debian Jessie)"
  6. is_private changed to: "0"
  7. login: "pokute"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "b3541b092a7a888405f44df9381de9a06be14ad9"
  10. resolution changed to: "None"
  11. severity changed to: "Important"
  12. status changed to: "Open"
  13. submitter changed to: "pokute"
  14. subsystem changed to: "16. Commands A-H"
  15. title changed to: "non-blocking IO write truncation"
  16. type changed to: "Bug"