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

[fix][offload] Break the fillbuffer loop when met EOF #22722

Merged
merged 2 commits into from
May 17, 2024

Commits on May 16, 2024

  1. [fix][offload] Break the fillbuffer loop when met EOF

    ---
    
    ### Motivation
    
    When hit an EOF, the write bytes will return -1 then it would
    make the bytesToCoppy bigger than the buffer to fill. Then we
    will hit the java.lang.IndexOutOfBoundsException.
    Break the look when hit the EOF, fill the buffer next time.
    zymap committed May 16, 2024
    Configuration menu
    Copy the full SHA
    f8723a6 View commit details
    Browse the repository at this point in the history
  2. Fix the license header

    zymap committed May 16, 2024
    Configuration menu
    Copy the full SHA
    8f63259 View commit details
    Browse the repository at this point in the history