-
Notifications
You must be signed in to change notification settings - Fork 104
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
Handle file streams differently #947
Comments
We needed to comment out flask http tests because those started failing with |
Looks like the culprit was This all starts from how |
fixed in #1201 |
Right now we do weird stuff with file streams, we should handle those similar to DirStreams - an object that is identified by usize (pointer) and points to a remote object (RemoteFile).
For example, on calling
fclose
we callfclose
even if it's a stream managed by us, meaning this would most probably crashThis has not been tested yet, but we assume that running even simple flows with filestreams (e.g. by running mirrord on a node app) would break.
Functions to hook/fix
My proposed idea would be that most of the logic is layer-only, meaning we need some additional abstraction for fds similar to what libc provides:
The text was updated successfully, but these errors were encountered: