Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.
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: joyent/libuv
base: 9e921ed1e518
Choose a base ref
...
head repository: joyent/libuv
compare: 817c09257d5b
Choose a head ref
  • 1 commit
  • 5 files changed
  • 1 contributor

Commits on Jul 11, 2014

  1. unix: remove incorrect assert

    After 4189122 landed it's possible that uv__udp_sendmsg is called
    even if there are no pending write nor write completed requests:
    
    1. User calls uv_udp_send and the request is sent immediately. The
       request is the added to the completed queue and we 'feed' the uv__io
       handle so that we process the completed request in the next
       iteration.
    2. User calls uv_udp_send again but the request is not completed
       immediately, so it's queued in the write_queue.
    3. The uv__io handle gets a UV__POLLOUT event and uv__udp_sendmsg is
       run, which completes the send request and puts it in the
       write_completed_queue. Afterwards, uv__udp_run_completed is executed
       and the write_completed queue is drained.
    4. At this point, the uv__io handle was made pending in step 3, in
       uv__udp_sendmsg, but we no longer have requests to write or to complete,
       so we skip processing.
    saghul committed Jul 11, 2014
    1
    Copy the full SHA
    817c092 View commit details
    Browse the repository at this point in the history