Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Network: TorStream should inherit IO.Stream #56

Merged
merged 3 commits into from
Apr 25, 2023

Conversation

aarani
Copy link
Collaborator

@aarani aarani commented Apr 8, 2023

This commit adds IO.Stream as a parent class
to TorStream this extremely helps with compatibility
and lowers the number of necessary changes to end
users' code.

@aarani aarani requested a review from knocte April 8, 2023 12:15
@aarani
Copy link
Collaborator Author

aarani commented Apr 8, 2023

@knocte commitLint seems to be broken

@aarani aarani force-pushed the inheritStream branch 7 times, most recently from d065128 to 91bcba9 Compare April 10, 2023 14:10
@aarani aarani marked this pull request as draft April 11, 2023 15:10
@aarani
Copy link
Collaborator Author

aarani commented Apr 11, 2023

I'm converting this to DRAFT because while I was experimenting Stream.CopyTo failed.
EDIT: I fixed the issue

@aarani aarani force-pushed the inheritStream branch 2 times, most recently from 8383500 to 00ce56a Compare April 11, 2023 15:21
@aarani aarani marked this pull request as ready for review April 11, 2023 15:26
This commit adds IO.Stream as a parent class
to TorStream this extremely helps with compatibility
and lowers the number of necessary changes to end
users' code.
This commit removes the chunk helper function
in favor the already existing F# method named
ChunkBySize, not sure why I didn't find it before.
@aarani aarani force-pushed the inheritStream branch 2 times, most recently from f28e2ff to 730edf6 Compare April 12, 2023 17:48
@aarani
Copy link
Collaborator Author

aarani commented Apr 12, 2023

I rebased this PR, is there anything else here @knocte ?

This test is mostly for flexing TorStream's
compatiblity with SslStream.

Also apparently some web servers don't include
Content-Encoding header in that case we just assume
that there's no special encoding.
@aarani
Copy link
Collaborator Author

aarani commented Apr 16, 2023

@knocte I can't approve my own pull request so I can't merge it

@aarani aarani merged commit 6069c42 into nblockchain:master Apr 25, 2023
6 checks passed
@aarani aarani mentioned this pull request Apr 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants