nyxnor / tor-ctrl

Raw use of tor's controller
Other
5 stars 3 forks source link

tor-ctrl-stream does not print based on stream number, but based on line order #23

Closed nyxnor closed 2 years ago

nyxnor commented 2 years ago

This fails and the printed table becomes wrong because streams can be in the following order:

650 STREAM 14320 SUCCEEDED 10773
650 STREAM 14324 CLOSED 10775
650 STREAM 14318 CLOSED 10772
650 STREAM 14322 SENTCONNECT 10774
650 STREAM 14320 CLOSED 10773
650 STREAM 14326 SUCCEEDED 10776
650 STREAM 14322 SUCCEEDED 10774
650 STREAM 14326 CLOSED 10776
650 STREAM 14322 CLOSED 10774

The table results in a mess, it does not match the real streams, just the last closed.

tor-ctrl-stream should print based on StreamID, third field.

Will partially help with https://github.com/nyxnor/tor-ctrl/issues/22