LacticWhale / socks_dart

Socks5 server and client with ability to catch packet in both direction, chain proxies and more.
MIT License
14 stars 4 forks source link

RangeError (RangeError: _readBytes has fewer bytes than expected.) #8

Closed nns52k closed 4 months ago

nns52k commented 4 months ago

For details, please check https://github.com/Foundation-Devices/tor/issues/41#issue-2271120120

LacticWhale commented 4 months ago

Haven't I already said it's caused by connection closing on server side. I will add proper way to handle it later. Right now I am waiting for feature to be added in Dart SDK.

nns52k commented 4 months ago

Haven't I already said it's caused by connection closing on server side. I will add proper way to handle it later. Right now I am waiting for feature to be added in Dart SDK.

But connecting to an external Tor process works just fine. Are you sure it's a bug in package socks5_proxy instead of package tor?

LacticWhale commented 4 months ago

It's not a bug, it's feature that have not yet been documented.

nns52k commented 4 months ago

It's not a bug, it's feature that have not yet been documented.

Just wondering, any chance we could get an option to switch off this feature?

Your Dart package stands out as the most promising among others I've come across. Can't wait to surf onion servers with this awesome package! Huge thanks for all your hard work; it's seriously appreciated!

LacticWhale commented 4 months ago

@nns52k I changed Erorr to Exception (was my fault I wrote that code before I knew most of guidelines) in ByteReader so now you can catch ByteReaderException or SocksClientException if server closes connection without stating a reason (which is valid according to socks documentation). For all new changes see CHANGELOG.md