Bug#881012: dput: upload rate no longer slowed by trickle

2018-01-28 Thread Ben Finney
On 06-Nov-2017, Michael Gilbert wrote:

> After the upload of dput 1.0.1, the same command no longer causes any
> slow down.  Downgrading dput to 0.12.1 from stretch restores the
> previous behavior.

The major difference between those ‘dput’ versions is that the program
was using the Python 2 interpreter, and now uses the Python 3
interpreter.

Debian bug#824513 describes a bug in ‘trickle’ with some socket
options , which changed between
Python 2 to Python 3. Can you verify that makes the difference for
your case?

-- 
 \  “I can picture in my mind a world without war, a world without |
  `\   hate. And I can picture us attacking that world, because they'd |
_o__)   never expect it.” —Jack Handey |
Ben Finney 


signature.asc
Description: PGP signature


Bug#881012: dput: upload rate no longer slowed by trickle

2018-01-28 Thread Ben Finney
Control: tags -1 + moreinfo

Thanks for this report.

On 06-Nov-2017, Michael Gilbert wrote:
> This command used to slow my upload rate to 10 KiB/s.
> $ trickle -s -u 10 dput package.changes

To know more about this, we'll need to see what ‘dput’ configuration
is effective when you run that command.

Can you attach the effective ‘dput’ configuration to this bug report?
Just get the output from the command ‘dput --print’, and attach it in
a reply to this bug report.

> After the upload of dput 1.0.1, the same command no longer causes
> any slow down.

Which version of ‘trickle’ are you using?

Can you try using ‘strace’ to track both – a version which works as
you expect, and a version which does not – with ‘trickle’ and without?

That is, please give the output from the following:

* Install ‘dput’ at a version that behaves as you expect.

* Get the ‘strace’ session of a normal upload::

  $ outfile="dput-$(dput --version | cut --delimiter=' ' --fields=2)".strace
  $ strace dput foo.changes > "$outfile"

* Get the ‘strace’ session of an upload within ‘trickle’::

  $ outfile="dput-$(dput --version | cut --delimiter=' ' 
--fields=2)".trickle.strace
  $ strace trickle -s -u 10 dput foo.changes > "$outfile"

* Install ‘dput’ at the latest version in Debian (“1.0.1”).

* Get the ‘strace’ session of a normal upload::

  $ outfile="dput-$(dput --version | cut --delimiter=' ' --fields=2)".strace
  $ strace dput foo.changes > "$outfile"

* Get the ‘strace’ session of an upload within ‘trickle’::

  $ outfile="dput-$(dput --version | cut --delimiter=' ' 
--fields=2)".trickle.strace
  $ strace trickle -s -u 10 dput foo.changes > "$outfile"

* Attach each of those four output files ‘dput-*.strace’ to this bug
  report.

This will allow comparison of what OS calls are being made, for each
of the two interacting variables (differing version of ‘dput’, and
whether ‘trickle’ is used).

-- 
 \  “The way to build large Python applications is to componentize |
  `\ and loosely-couple the hell out of everything.” —Aahz |
_o__)  |
Ben Finney 


signature.asc
Description: PGP signature


Bug#881012: dput: upload rate no longer slowed by trickle

2017-11-06 Thread Michael Gilbert
package: dput
version: 1.0.1
severity: normal

This command used to slow my upload rate to 10 KiB/s.

$ trickle -s -u 10 dput package.changes

After the upload of dput 1.0.1, the same command no longer causes any
slow down.  Downgrading dput to 0.12.1 from stretch restores the
previous behavior.

Best wishes,
Mike