Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f0fbcdebaa15a450bc0e6af7b37955389ed5d72a
Ticket: 1969953fffffffffffffffffffffffffffffffff
Buffersize should clip, not ignore, big values
User & Date: ferrieux on 2008-05-22 21:57:07
Changes

  1. assignee changed to: "andreas_kupries"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    The [fconfigure -buffersize] value is documented as having a valid range of [1,1000000], fine.
    
    First, this is inaccurate, since the code uses the value 1M (1024*1024, not 1000*1000) instead.
    
    Second, when a value larger than 1M is given, it is silently ignored, staying at its previous value. In most cases this means the default of 4k. Bottom line: people try to improve their throughput on large transfers by setting large values, and it has no effect, and no error message tells them about the mechanism.
    
    I find this behavior stupid. We should:
    
      - either clip large values to the max allowed
      - or raise an error if out of range
    
    Please find attached a patch doing the former.
    
    
  4. foundin changed to: "None"
  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: "ferrieux"
  10. subsystem changed to: "24. Channel Commands"
  11. title changed to: "Buffersize should clip, not ignore, big values"
  12. type changed to: "Bug"