You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating the FileDescriptor I have to decide on the mode (read or write).
However, when calling jUring.prepareWrite this mode will not be enforced or checked. I can still prepareWrite on a READ file descriptor and it will pass silently (without actually writing anything).
Thanks for taking such a close look at the code, and code to reproduce the issue! I really appreciate that!
This bug should definitely not happen, and will make sure it gets fixed.
About the test name: I accidentally switched the naming of two test around. The test above that one has reads and writes.
Thanks for creating the issue! 👍
Note for when this gets picked up: Check how adding file mode checks impacts performance. If performance desegregates to much try to move the checks to compile time with inheritance and method overloading.
Greetings!
When creating the FileDescriptor I have to decide on the mode (read or write).
However, when calling
jUring.prepareWrite
this mode will not be enforced or checked. I can stillprepareWrite
on aREAD
file descriptor and it will pass silently (without actually writing anything).Reproducer:
Btw, this test has the name
mixedReadAndWrite
but I can see only writes? Where is the mix or read please?The text was updated successfully, but these errors were encountered: