Skip to content

Throttling IPv6 connections? #86

@BenoitZugmeyer

Description

@BenoitZugmeyer

First, thank you for this project, it is super useful.

On macOS, it seems that throttle works for IPv4 connections, but not IPv6:

$ throttle --up 330 --down 780 --rtt 200
Started throttler: Down:780kbit/s Up:330kbit/s RTT:200ms PacketLoss:0%

$ curl -4 -i 'https://freetestdata.com/wp-content/uploads/2022/02/Free_Test_Data_2.48MB_AVI.avi' --output /dev/null 
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  4 2548k    4  115k    0     0  58873      0  0:00:44  0:00:02  0:00:42 58877^C

$ curl -6 -i 'https://freetestdata.com/wp-content/uploads/2022/02/Free_Test_Data_2.48MB_AVI.avi' --output /dev/null
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 2548k  100 2548k    0     0  18.4M      0 --:--:-- --:--:-- --:--:-- 18.4M

I wonder if IPv6 can be supported too? Or at least, have a word in the documentation?

Note: I used it to debug a Node.js script, and since Node 16, I needed to use --dns-result-order=ipv4first for using IPv4 over IPv6, so the connection can be throttled.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions