Daniel Alm
|
e00e1e8e80
Fix several completion queue leaks in tests; ensure that cancelling a session server-side always shuts down the corresponding completion queue.
|
7 years ago |
Daniel Alm
|
bdfb1b80e3
Update a few comments.
|
7 years ago |
Daniel Alm
|
dc35994f21
Make the server dispatch each request handler on its own thread and make the `ServerSession` request handler implementations run synchronously; this saves one potentially costly asynchronous dispatch.
|
7 years ago |
Daniel Alm
|
b1788479bb
Spin up dedicated queues for some operations.
|
7 years ago |
Tim Burks
|
36ea2c6a2d
Updates following review from @rebello95.
|
7 years ago |
Tim Burks
|
d9ab6746da
Fix a few problems found running "pod spec lint".
|
7 years ago |
Daniel Alm
|
2577eae9db
Move _all_ completion queue shutdown operations into the Swift layer, to better enforce that the queue does not accept any new operations once it has been shut down.
|
7 years ago |
Daniel Alm
|
5248b05962
Documentation fix.
|
7 years ago |
Daniel Alm
|
abb9cf2dc2
Make trying to perform an operation on a shut-down completion queue throw an error, and add tests for that.
|
7 years ago |
Daniel Alm
|
dc451e4984
Shift the responsibility for draining and destroying a completion queue to the queue itself. This is needed because it appears that otherwise, the underlying completion queue gets deallocated during its spinloop, which it doesn't like.
|
7 years ago |
Daniel Alm
|
cf323b474c
Get rid of the `callbackQueue` argument for `CompletionQueue.runToCompletion`, as we only use it on one occasion, and on that occasion we already dispatch the completion block on that queue anyway.
|
7 years ago |
Daniel Alm
|
d3afc45926
Ensure that any operation groups enqueued on a completion queue after receiving SHUTDOWN still have their completion handlers called.
|
7 years ago |
Daniel Alm
|
17b32f51bb
Fix a potential race condition where operation group completion handlers could get called twice, as well as an unsynchronized access to `CompletionQueue.operationGroups` that should be synchronized.
|
7 years ago |
Daniel Alm
|
ac7979d5e0
Ensure that errors in client calls are always provided to the user.
|
7 years ago |
Tim Burks
|
6a408655fa
Minor file reorganization in Sources/SwiftGRPC.
|
7 years ago |