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

API to offload io operations to external implementation #6324

Open
wants to merge 29 commits into
base: master
Choose a base branch
from

Commits on Aug 5, 2020

  1. first portion of changes

    use writeback to external io handler in transport_write if external io
    is in use
    
    logic fix
    
    implemented write handler for external io
    
    added support for external io mode into transport_read_pdu
    instead of duplicating it.
    
    added missed EOL in new file
    
    logic fix
    
    dropped unneeded 'else'
    
    WIP: making whole io switchable
    
    moved streampool related code to separate function
    
    implemented switchable Read
    
    implemented switchable write
    
    changes requested by akallabeth
    
    DataHandler inplementation should not be switched, it is intended to be
    used from external user
    use SSIZE_T type for signed size type
    
    improoved 'freerdp_set_transport_callbacks' logic a bit
    
    overwrite already allocated rdpIoUpdate instead of changing pointer to
    new one
    
    dropped noisy log messages
    Gluzskiy Alexandr committed Aug 5, 2020
    Configuration menu
    Copy the full SHA
    c3556e5 View commit details
    Browse the repository at this point in the history
  2. logic error fix

    more agressive "polling"
    Gluzskiy Alexandr committed Aug 5, 2020
    Configuration menu
    Copy the full SHA
    b41274b View commit details
    Browse the repository at this point in the history
  3. reverted some changes

    Gluzskiy Alexandr committed Aug 5, 2020
    Configuration menu
    Copy the full SHA
    8faa54b View commit details
    Browse the repository at this point in the history
  4. clang-format as requested

    Gluzskiy Alexandr committed Aug 5, 2020
    Configuration menu
    Copy the full SHA
    6b33f07 View commit details
    Browse the repository at this point in the history
  5. cosmetic: moved buffer overflow check to old location

    Gluzskiy Alexandr committed Aug 5, 2020
    Configuration menu
    Copy the full SHA
    3d96896 View commit details
    Browse the repository at this point in the history
  6. call transport_register_default_io_callbacks from update_new as

    requested
    Gluzskiy Alexandr committed Aug 5, 2020
    Configuration menu
    Copy the full SHA
    67ff50e View commit details
    Browse the repository at this point in the history
  7. Revert "call transport_register_default_io_callbacks from update_new as"

    This reverts commit f4c8041.
    
    transport_register_default_io_callbacks require update->context to be
    set
    Gluzskiy Alexandr committed Aug 5, 2020
    Configuration menu
    Copy the full SHA
    980068e View commit details
    Browse the repository at this point in the history
  8. eliminated loop in transport_check_fds

    implemented global io timeout for transport io, by default set to 60
    seconds
    Gluzskiy Alexandr committed Aug 5, 2020
    Configuration menu
    Copy the full SHA
    b8577a9 View commit details
    Browse the repository at this point in the history
  9. register io callbacks inside update_new as requested

    working on switchable connect/disconnect functions
    Gluzskiy Alexandr committed Aug 5, 2020
    Configuration menu
    Copy the full SHA
    d9c1198 View commit details
    Browse the repository at this point in the history
  10. droped loop timeout, loop already eliminated

    returned SetEvent/Resetevent for ransport->rereadEvent and
    transport->haveMoreBytesToRead  state setting, as server side code
    depends on it (ned to be eliminated in further refactoring)
    in server/Sample used 1000 timeout for WaitForMultipleObjects as
    workaround, looks like WaitForMultipleObjects does not work properly.
    Gluzskiy Alexandr committed Aug 5, 2020
    Configuration menu
    Copy the full SHA
    d9c90dd View commit details
    Browse the repository at this point in the history
  11. switchable transport_disconnect

    Gluzskiy Alexandr committed Aug 5, 2020
    Configuration menu
    Copy the full SHA
    6dad610 View commit details
    Browse the repository at this point in the history
  12. cleanup.

    corrected padding in io struct
    Gluzskiy Alexandr committed Aug 5, 2020
    Configuration menu
    Copy the full SHA
    d45ddd8 View commit details
    Browse the repository at this point in the history

Commits on Aug 6, 2020

  1. clang-format

    Gluzskiy Alexandr committed Aug 6, 2020
    Configuration menu
    Copy the full SHA
    e228ce9 View commit details
    Browse the repository at this point in the history

Commits on Aug 7, 2020

  1. use padding

    Gluzskiy Alexandr committed Aug 7, 2020
    Configuration menu
    Copy the full SHA
    9f3f3af View commit details
    Browse the repository at this point in the history
  2. cleanup

    Gluzskiy Alexandr committed Aug 7, 2020
    Configuration menu
    Copy the full SHA
    f7d0936 View commit details
    Browse the repository at this point in the history
  3. fixed design error

    Gluzskiy Alexandr committed Aug 7, 2020
    Configuration menu
    Copy the full SHA
    bf7a8c5 View commit details
    Browse the repository at this point in the history
  4. fixed design issue

    Gluzskiy Alexandr committed Aug 7, 2020
    Configuration menu
    Copy the full SHA
    14ba050 View commit details
    Browse the repository at this point in the history
  5. fixed design errors

    Gluzskiy Alexandr committed Aug 7, 2020
    Configuration menu
    Copy the full SHA
    6a54e3f View commit details
    Browse the repository at this point in the history
  6. dropped unused legacy code

    Gluzskiy Alexandr committed Aug 7, 2020
    Configuration menu
    Copy the full SHA
    224575a View commit details
    Browse the repository at this point in the history
  7. clang-format

    Gluzskiy Alexandr committed Aug 7, 2020
    Configuration menu
    Copy the full SHA
    2088956 View commit details
    Browse the repository at this point in the history
  8. ...

    Gluzskiy Alexandr committed Aug 7, 2020
    Configuration menu
    Copy the full SHA
    ad56561 View commit details
    Browse the repository at this point in the history
  9. clang-format

    Gluzskiy Alexandr committed Aug 7, 2020
    Configuration menu
    Copy the full SHA
    3ce070c View commit details
    Browse the repository at this point in the history
  10. reverted proxy_connect

    Gluzskiy Alexandr committed Aug 7, 2020
    Configuration menu
    Copy the full SHA
    b6204a2 View commit details
    Browse the repository at this point in the history

Commits on Aug 10, 2020

  1. requested changes

    Gluzskiy Alexandr committed Aug 10, 2020
    Configuration menu
    Copy the full SHA
    4df0eff View commit details
    Browse the repository at this point in the history
  2. strict type checking for freerdp_set_transport_callbacks

    Gluzskiy Alexandr committed Aug 10, 2020
    Configuration menu
    Copy the full SHA
    ac79e9d View commit details
    Browse the repository at this point in the history
  3. clang-format

    Gluzskiy Alexandr committed Aug 10, 2020
    Configuration menu
    Copy the full SHA
    c4a1dcd View commit details
    Browse the repository at this point in the history

Commits on Aug 20, 2020

  1. missed bit

    Gluzskiy Alexandr committed Aug 20, 2020
    Configuration menu
    Copy the full SHA
    1acef5a View commit details
    Browse the repository at this point in the history

Commits on Aug 21, 2020

  1. eliminate code duplication

    Gluzskiy Alexandr committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    f9acc8c View commit details
    Browse the repository at this point in the history
  2. switchable server-side tls-accept

    Gluzskiy Alexandr committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    b137f7e View commit details
    Browse the repository at this point in the history