Daniel Alm
|
8c45d3fd9a
Make sure to shut down a channel's completion queue once it is deallocated.
|
7 年之前 |
Daniel Alm
|
abb9cf2dc2
Make trying to perform an operation on a shut-down completion queue throw an error, and add tests for that.
|
7 年之前 |
Daniel Alm
|
093dd79a4c
Reduce the number of requests in `testUnaryLotsOfRequests` to 10k for faster test runtimes.
|
7 年之前 |
Tim Burks
|
dd4d1cb64d
Merge pull request #188 from MrMage/even-more-improvements
|
7 年之前 |
Daniel Alm
|
e68cec0db8
Add a simple API to provide a channel's connectivity state. (See #186.)
|
7 年之前 |
Daniel Alm
|
9b9ba22eed
Try increasing the default timeout for server-cancelling tests to 5 seconds?
|
7 年之前 |
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 年之前 |
Daniel Alm
|
d8ac7d41f0
Fix GRPCTests, hopefully once and for all (see 415307ee for an explanation).
|
7 年之前 |
Daniel Alm
|
78a1291789
Fix two huge memory leaks in `cgrpc_call` and `cgrpc_handler`. These would all GRPC call objects to never get released, which in turn caused their completion queues and associated file descriptors to never get released. This became apparent after ~3-5k requests on macOS.
|
7 年之前 |
Tim Burks
|
951a20acba
Merge pull request #184 from MrMage/more-improvements
|
7 年之前 |
Daniel Alm
|
5d322044ed
Add tests to verify the behavior of canceling client and server calls.
|
7 年之前 |
Daniel Alm
|
8d07183369
Add a blocking variant of the `send` method to `ServerStreaming`.
|
7 年之前 |
Daniel Alm
|
6af3914244
Add a method to `ServerSessionClientStreaming` to return an error status without a result.
|
7 年之前 |
Daniel Alm
|
e7645b48ef
Add sample test suites to demonstrate how one would test client/server code.
|
7 年之前 |
Daniel Alm
|
415307ee6f
Fix the GRPCTests again without using a sleep call:
|
7 年之前 |
Daniel Alm
|
9c54d0a089
Try making Travis cache the SwiftPM dependencies and APT repositories, for faster CI builds.
|
7 年之前 |
Daniel Alm
|
7935aebf14
Fix a minor error in the Travis build script.
|
7 年之前 |
Daniel Alm
|
c9620048f5
Make the test expectations on `receive` consistent across Linux and macOS.
|
7 年之前 |
Daniel Alm
|
9128b60c69
Make `OperationGroup` cache its `...Metadata` properties, as those methods actually *move* the metadata (so a second call to these methods would previously always return empty metadata objects).
|
7 年之前 |
Daniel Alm
|
2313a9933f
Fix two compiler warnings.
|
7 年之前 |
Daniel Alm
|
da28b9aec2
Change the `ServerSession`s such that errors thrown during operation are returned to the client.
|
7 年之前 |
Daniel Alm
|
f6d4341682
Make `Server` retain its active handlers without having to resort to a `handlers` set.
|
7 年之前 |
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 年之前 |
Daniel Alm
|
da52b27f2c
Only enter the `messageQueueEmpty` dispatch group if we are certain that the message has been appended to the queue.
|
7 年之前 |
Daniel Alm
|
7ed242e571
"Fix" GRPCTests again by inserting a small delay in between sends. We really don't want to need such delays, so this is only a temporary fix until I finally find the proper underlying cause.
|
7 年之前 |
Daniel Alm
|
0985a47176
Also add client-timeout tests and rename "ErrorHandlingTests" to "ConnectionFailureTests".
|
7 年之前 |
Daniel Alm
|
2ebe048765
Add tests to ensure that server-side timeouts are handled as expected.
|
7 年之前 |
Daniel Alm
|
c1b54e679a
Fix how the server handles unknown methods (broken by me in ac7979d5, I had forgotten that sending initial metadata is required).
|
7 年之前 |
Daniel Alm
|
d3afc45926
Ensure that any operation groups enqueued on a completion queue after receiving SHUTDOWN still have their completion handlers called.
|
7 年之前 |
Daniel Alm
|
90601ab831
Avoid an extra dispatch in `Call.sendWithoutBlocking`.
|
7 年之前 |