-
Notifications
You must be signed in to change notification settings - Fork 177
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
Lwt_io.of_bytes + position don't work #636
Labels
Comments
Confirmed. The code in |
Good! I'll give it a shot! |
NathanReb
pushed a commit
to NathanReb/lwt
that referenced
this issue
Nov 20, 2018
Merged
NathanReb
pushed a commit
to NathanReb/lwt
that referenced
this issue
Nov 20, 2018
aantron
pushed a commit
that referenced
this issue
Nov 23, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I you run the following in utop:
you get:
which obviously is a bug as you can't
set_position
on a negative value.I'm not familiar with
Lwt
's internals but had a look and it appearsof_bytes
behaves inconsistently with the broadermake
.Here, in make,
max
depends on the mode while here, inof_bytes
, it doesn't.I found it by writing tests for a function that is supposed to reset the position after processing the channel. I assume it should work on regular channels as if it wasn't, someone would probably have found out by now. Still I'll try it out and let you know.
I'm happy to submit a fix if this is indeed the issue here!
The text was updated successfully, but these errors were encountered: