Craig Tiller
f9e6adf998
Completion queue binding for new requests API change
...
Move completion queue binding for new requests to the new request
request time, not server instantiation time.
10 years ago
Craig Tiller
64be9f7a30
C Core API cleanup.
...
Simplify grpc_event into something that can be non-heap allocated.
Deprecate grpc_event_finish.
Remove grpc_op_error - use an int as this is more idiomatic C style.
10 years ago
Craig Tiller
900e451407
Remove ungeneratable enum values and union members
10 years ago
Craig Tiller
0e91956b49
Remove _old apis from the core library
10 years ago
Craig Tiller
4df412b471
Add some infrastructure for call refcount debugging
10 years ago
Masood Malekghassemi
bf177c884f
Pass deadline to call details for batch calls
10 years ago
Craig Tiller
8950461da7
Have server hold a reference to completion queues
...
In the presence of garbage collectors, this helps ensure that completion
queues outlive the servers that depend upon them.
10 years ago
Craig Tiller
64bc3fdaaa
remove annotations
10 years ago
Craig Tiller
916b152184
annotations - revert later
10 years ago
Craig Tiller
872af0281e
Fix memory leak
10 years ago
Craig Tiller
482ef8b0db
Add required NULL check
10 years ago
Craig Tiller
06aeea7e94
clang-format
10 years ago
Craig Tiller
50d9db534c
Flesh out initial_op
10 years ago
Craig Tiller
be18b8db30
Beginning transport work
10 years ago
Craig Tiller
205aee1c82
Move metadata batching to stream_op
10 years ago
Craig Tiller
87d5b19da6
clang-format
10 years ago
Craig Tiller
6902ad2e9c
Switching to batch oriented metadata passing
10 years ago
Craig Tiller
c02c1d883a
clang-format
10 years ago
Craig Tiller
aec96aa223
Fix server shutdown
...
A previous fix to make close() occur later can cause socket reuse by servers to fail as previous sockets are left asynchronously open.
This change:
- adds a callback to TCP server shutdown to signal that the server is completely shutdown
- wait for that callback before destroying listeners in the server (and before destroying the server)
- handles fallout
10 years ago
Craig Tiller
a99157f4dd
Fix server shutdown
...
A previous fix to make close() occur later can cause socket reuse by servers to fail as previous sockets are left asynchronously open.
This change:
- adds a callback to TCP server shutdown to signal that the server is completely shutdown
- wait for that callback before destroying listeners in the server (and before destroying the server)
- handles fallout
10 years ago
Craig Tiller
60fd361480
Crash in channel/server creation if grpc_init not called
10 years ago
Craig Tiller
d75fe665d1
Fix a double-close in the server code.
...
Exposed (I think) now that we properly handle POLLHUP.
10 years ago
Craig Tiller
190d360def
Add missing new-lines at end of file
10 years ago
Craig Tiller
0605995e55
Update copyright to 2015
10 years ago
Craig Tiller
a94beff94c
Add TODO
10 years ago
Craig Tiller
aea2fc053d
Fix shutdown semantics.
...
Document what they should be, ensure they're triggered, and fix what was broken.
10 years ago
Craig Tiller
5d6bd44381
Fix tsan reported race
10 years ago
Craig Tiller
ec3257c120
Fix end2end leaks
10 years ago
Craig Tiller
20bc56d890
Multi-completion-queue-server
...
Allow binding a different completion queue to each registered method.
This will allow multiplexing for the C++ server between sync & async
methods more easily.
10 years ago
Craig Tiller
bd217574fb
Fix server shutdown issues
...
First end2end test passes
10 years ago
Craig Tiller
0ef1a92818
Fix hash table
10 years ago
Craig Tiller
e76c96658b
Fix typo causing crash
10 years ago
Craig Tiller
3b29b566a2
Just use one completion queue per server for delivering completions
...
This simplifies (drastically) the polling story, although will slightly
complicate mixing sync & async servers - but we're not there yet.
10 years ago
Yang Gao
eb8e7cd922
Implement FinalizeResult
10 years ago
Craig Tiller
8e8fd89faf
Allow two completion queues on request call
...
One for the new rpc notification, the other is bound to the new call.
This will make async c++ soooo much easier.
10 years ago
Craig Tiller
70a761b3f0
Make sure new rpcs always come in on server cq
10 years ago
Craig Tiller
04cc8be233
First draft registered methods
10 years ago
Craig Tiller
85326964b0
Remove dead code
10 years ago
Craig Tiller
24be0f79e2
Rewrite server request startup path
...
Stub in registered methods, cleanup to the point I understand this code
again.
10 years ago
Craig Tiller
8b976d0c24
Fixes
10 years ago
Craig Tiller
0a927bfb63
Fix memory leak on server channels
10 years ago
Craig Tiller
166e25002c
First test passes
10 years ago
Craig Tiller
ea61b07800
Updated the first test (which fails)
10 years ago
Craig Tiller
fb189f826e
Flesh out batch API
10 years ago
Craig Tiller
fef766933e
Back-end for new core API
10 years ago
Craig Tiller
c4f0ebe63b
Prepare for the new batch call API.
...
Rename all core API functions that are on their way to deprecation with
an _old tag across all wrappings.
10 years ago
Craig Tiller
eac4c2363b
Fix server after merge
10 years ago
Craig Tiller
a7cac78516
Prepare for the new batch call API.
...
Rename all core API functions that are on their way to deprecation with
an _old tag across all wrappings.
10 years ago
Craig Tiller
ffa4a59f23
Fix up function signatures
10 years ago
Craig Tiller
149c112d00
Fix memory leak
10 years ago