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

Don't fail in gz_load() if read would block #993

Open
wants to merge 21 commits into
base: develop
Choose a base branch
from

Commits on Jul 18, 2024

  1. Don't fail in gz_load() if read would block

    I.e. when [errno] is EAGAIN or EWOULDBLOCK)
    
    E.g. if file descriptor is a non-blocking TCP socket,
         and more data are expected.  This might cause a
         problem if compressed bytes are read but do not
         generate an uncompressed byte, because the return
         value will be 0, which usually indicates EOF.
    Brian T. Carcich authored and Brian T. Carcich committed Jul 18, 2024
    Configuration menu
    Copy the full SHA
    3e31e7b View commit details
    Browse the repository at this point in the history

Commits on Jul 20, 2024

  1. Handle EWOULDBLOCK/EAGAIN in gz_load() call from gz_read

    Brian T. Carcich authored and Brian T. Carcich committed Jul 20, 2024
    Configuration menu
    Copy the full SHA
    f16f656 View commit details
    Browse the repository at this point in the history
  2. More handling of EWOULDBLOCK/EAGAIN results in calls from gz_read

    Brian T. Carcich authored and Brian T. Carcich committed Jul 20, 2024
    Configuration menu
    Copy the full SHA
    adb2b5b View commit details
    Browse the repository at this point in the history

Commits on Jul 21, 2024

  1. In gz_read(), do not introduce blocked read state after gz_fetch() un…

    …til data are transferred to buffer argument
    Brian T. Carcich authored and Brian T. Carcich committed Jul 21, 2024
    Configuration menu
    Copy the full SHA
    6e8ddfd View commit details
    Browse the repository at this point in the history

Commits on Jul 23, 2024

  1. Add non-blocking socket test code; first draft, no formal test yet

    Brian T. Carcich authored and Brian T. Carcich committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    3ddf538 View commit details
    Browse the repository at this point in the history
  2. Rename test program

    Brian T. Carcich authored and Brian T. Carcich committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    12eca61 View commit details
    Browse the repository at this point in the history
  3. Build GZ-non-blocking binary

    Brian T. Carcich authored and Brian T. Carcich committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    1cf7557 View commit details
    Browse the repository at this point in the history
  4. Add fork of client by server in test/gznonblk.c; not done yet

    Brian T. Carcich authored and Brian T. Carcich committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    d781605 View commit details
    Browse the repository at this point in the history
  5. Remove [int s]; use '-stopserver-' to stop server

    Brian T. Carcich authored and Brian T. Carcich committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    73b57d4 View commit details
    Browse the repository at this point in the history
  6. Fix post-fork(2) bug; clean up comments

    Brian T. Carcich authored and Brian T. Carcich committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    a9f3755 View commit details
    Browse the repository at this point in the history

Commits on Jul 24, 2024

  1. test/gznonblk.c now working, server spawns client and reports exit st…

    …atus of client and server suitable for automated testing (make test...)
    Brian T. Carcich authored and Brian T. Carcich committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    ea6e677 View commit details
    Browse the repository at this point in the history
  2. Update Makefile.in to run test of gznonblk

    Brian T. Carcich authored and Brian T. Carcich committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    f6a01bb View commit details
    Browse the repository at this point in the history
  3. Add /gznonblk to .gitignore

    Brian T. Carcich authored and Brian T. Carcich committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    880c261 View commit details
    Browse the repository at this point in the history
  4. Add dependencies for gznonblk* to Makefile.in

    Brian T. Carcich authored and Brian T. Carcich committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    6366659 View commit details
    Browse the repository at this point in the history
  5. Move testgznonblk dependency to the right place in Makefile.in

    Brian T. Carcich authored and Brian T. Carcich committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    5c75fcb View commit details
    Browse the repository at this point in the history
  6. test/gznonblk.c: add more comments, rearrange logging

    Brian T. Carcich authored and Brian T. Carcich committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    5ab0725 View commit details
    Browse the repository at this point in the history
  7. Fix typo

    Brian T. Carcich authored and Brian T. Carcich committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    511989d View commit details
    Browse the repository at this point in the history
  8. Add usage options (--help[-long]) to test/gznonblk.c

    Brian T. Carcich authored and Brian T. Carcich committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    970385d View commit details
    Browse the repository at this point in the history
  9. Clean up test/gznonblk.c Usage

    Brian T. Carcich authored and Brian T. Carcich committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    903c3ab View commit details
    Browse the repository at this point in the history
  10. test/gznonblk.c: add header comments

    Brian T. Carcich authored and Brian T. Carcich committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    c6152bb View commit details
    Browse the repository at this point in the history

Commits on Jul 25, 2024

  1. Update ChangeLog

    drbitboy authored Jul 25, 2024
    Configuration menu
    Copy the full SHA
    df4df93 View commit details
    Browse the repository at this point in the history