Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: Congyuwang/socket_manager
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.2.2
Choose a base ref
...
head repository: Congyuwang/socket_manager
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.3.0
Choose a head ref
  • 16 commits
  • 74 files changed
  • 2 contributors

Commits on Jul 21, 2023

  1. Configuration menu
    Copy the full SHA
    c7bea11 View commit details
    Browse the repository at this point in the history
  2. download llvm using wget

    Congyuwang committed Jul 21, 2023
    Configuration menu
    Copy the full SHA
    7f6c6b4 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a314494 View commit details
    Browse the repository at this point in the history
  4. add also screen

    Congyuwang committed Jul 21, 2023
    Configuration menu
    Copy the full SHA
    8e4cf8f View commit details
    Browse the repository at this point in the history

Commits on Jul 22, 2023

  1. Use std::string_view (#33)

    * use string_view for on_message
    
    * use string_view for msg_sender
    
    * use wait_free(1) in sender
    
    * simplify write logic
    
    * fix bug: wait size larger than buffer size
    
    * bump version to v0.3.0
    Congyuwang authored Jul 22, 2023
    Configuration menu
    Copy the full SHA
    6bea8ce View commit details
    Browse the repository at this point in the history
  2. Create dependabot.yml

    Congyuwang authored Jul 22, 2023
    Configuration menu
    Copy the full SHA
    aabb600 View commit details
    Browse the repository at this point in the history
  3. Create codeql.yml (#34)

    * Create codeql.yml
    Congyuwang authored Jul 22, 2023
    Configuration menu
    Copy the full SHA
    8f560d0 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6104590 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    abd4883 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    54b5e15 View commit details
    Browse the repository at this point in the history

Commits on Jul 23, 2023

  1. Change on_connect API to send sender before calling start (#35)

    * return sender by OnConnect callback
    
    * update tests
    
    * Connection friend MsgSender
    
    * ignore all level of .idea
    
    * use substr api of string_view in try_send
    
    * fast return on empty bytes in send_block api
    
    * add submodule concurrentqueue
    
    * add an echo-server example
    Congyuwang authored Jul 23, 2023
    Configuration menu
    Copy the full SHA
    22dc0b7 View commit details
    Browse the repository at this point in the history

Commits on Jul 25, 2023

  1. Async recieve api (#36)

    * return sender by OnConnect callback
    
    * update tests
    
    * Connection friend MsgSender
    
    * ignore all level of .idea
    
    * use substr api of string_view in try_send
    
    * fast return on empty bytes in send_block api
    
    * add submodule concurrentqueue
    
    * add submodule concurrentqueue
    
    * add an echo-server example
    
    * fix an integer cast error
    
    * allow on_msg to suspend thus providing back pressure and etc.
    
    * fix fall through bug
    
    * update tests to async on_message api
    
    * make the old api compatible
    
    * Revert "update tests to async on_message api"
    
    This reverts commit 7aa91dd.
    
    * make the old api compatible (fix)
    
    * fix missing recv_waker.h
    
    * make receiver use shared_ptr for better sharing
    
    * add a PENDING const in socket_manager
    
    * move a RcvWaker to reduce allocation receiving message
    
    * fix copy move semantics
    
    * remove allocation in recv_waker
    
    * separate Waker class to send_waker.h
    
    * add a NoopWaker
    
    * use unique_ptr instead of raw pointers
    
    * make waker methods private
    
    * correctly define move semantics for recv_waker
    
    * simplify echo server with new API
    
    * add empty RcvWaker
    
    * reduce allocation in echo server example
    
    * remove unused import
    
    * clean aftermerge
    
    * remove unused example header
    
    * clear up after merging
    
    * move submodule queue to tests
    
    * add some comment about connect_to_addr
    
    * add doc for recv_waker.h
    
    * rename waker for sender to SendWaker
    
    * add fmt and clippy
    
    * rename RcvWaker to RecvWaker
    
    * doc recv_waker.rs
    
    * some renaming for connection.rs
    
    * renaming msg_sender c_api
    
    * return 1 instead of -1 to represent error
    
    * rename waker and notifier
    
    * document async_api module
    
    * simplify the async send api algorithm
    
    * refactor callbacks and extern_c.rs
    
    * cargo fmt
    
    * inline some async_ffi functions
    
    * cargo fmt
    
    * simplify Optional flush duration logic
    
    * fix a clippy warning in notifier
    
    * document async control flow of send and receive
    
    * generate the new c header
    
    * add doc for msg_receiver.h
    
    * rename recv_waker to waker
    
    * default notifier clone/release to noop
    
    * rename CMsgSender to MsgSender
    
    * rename NoopWaker to NoopNotifier
    
    * fix renaming CMsgSender
    
    * updating msg_sender interface
    
    * update connection h/cc
    
    * rename CSocketManager to SocketManager
    
    * update socket_manager h/cc
    
    * rename recv_waker in ffi
    
    * update conn_callback.h
    
    * update c_api impl
    
    * update tests
    
    * remove busy loop test
    
    * unify block async send logic
    
    * fix CMakeLists.txt
    
    * move registration of notifier to start of connection
    
    * fix cmake include issue
    
    * clarify noop empty waker
    
    * update tests and examples
    
    * fix potential async test deadlock
    
    * improve header doc
    
    * remove shared_from_this of connection.h
    
    * documenting socket_manager.h memory behavior
    
    * update the echo_server example to fix memory leak
    
    * add note on Waker resource management
    
    * add instructions on memory model
    
    * fix the test where send_block might through exception
    
    * Add CI for building examples
    
    * fix CI macos brew env
    Congyuwang authored Jul 25, 2023
    Configuration menu
    Copy the full SHA
    233ec0a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5cda811 View commit details
    Browse the repository at this point in the history
  3. Add send_nonblock api (#37)

    * remove a mis-comment
    
    * refactor msg-sender source code
    
    * use cbindgen for c++
    
    * implement send_nonblock by chained ring_buf
    
    * implement c++ interface for send_nonblock
    
    * add tests for send_nonblock
    
    * flush if break on sender cmd=None
    
    * fix compile bug
    
    * remove perf comment
    Congyuwang authored Jul 25, 2023
    Configuration menu
    Copy the full SHA
    04f09cf View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    2b0be6f View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    6a5d66e View commit details
    Browse the repository at this point in the history
Loading