Arjun Roy
195a30bb8b
Grpc: Change grpc_handshake and grpc_handshake_mgr to use CPP implementations.
...
grpc_handshake is renamed to GrpcHandshake, using C++ class definitions
instead of C-style vtable classes. Update callers to use new interfaces.
We use RefCountedPtr to simplify reference tracking.
6 years ago
Yihua Zhang
bed575c8b1
Do not pass interested_parties during handshake
7 years ago
kpayson64
8cbd880b1f
Add a null check for the endpoint on shutdown
7 years ago
kpayson64
0293cebe1b
Add a null check for the endpoint on shutdown
7 years ago
Mark D. Roth
979888b326
Clean up endpoint, args, and read buffer upon handshake timeout.
7 years ago
Mark D. Roth
7b6e07db0c
Call on_handshake_done with an error when handshaker is shut down.
7 years ago
Mark D. Roth
48854d2061
Change trace logging to use GPR_INFO instead of GPR_DEBUG.
7 years ago
Mark D. Roth
344634c198
Don't crash on null channel args or read buffer.
7 years ago
Mark D. Roth
dc4d01f6ef
Add tracer for handshakers.
7 years ago
Alexander Polcyn
db3e898a98
Add a sanity check for inclusion of port_platform.h
7 years ago
Noah Eisen
4d20a66685
Run clang fmt
7 years ago
Noah Eisen
be82e64b3d
Autofix c casts to c++ casts
7 years ago
Yash Tibrewal
8cf1470a51
Revert "Revert "All instances of exec_ctx being passed around in src/core removed""
7 years ago
Yash Tibrewal
ad4d2dde00
Revert "All instances of exec_ctx being passed around in src/core removed"
7 years ago
Dan Born
53d5503fac
Pass a pollset_set to some client handshakers.
7 years ago
Craig Tiller
4782d92b2d
s/NULL/nullptr
7 years ago
Yash Tibrewal
0ee7574732
Removing instances of exec_ctx being passed around in functions in
...
src/core. exec_ctx is now a thread_local pointer of type ExecCtx instead of
grpc_exec_ctx which is initialized whenever ExecCtx is instantiated. ExecCtx
also keeps track of the previous exec_ctx so that nesting of exec_ctx is
allowed. This means that there is only one exec_ctx being used at any
time. Also, grpc_exec_ctx_finish is called in the destructor of the
object, and the previous exec_ctx is restored to avoid breaking current
functionality. The code still explicitly calls grpc_exec_ctx_finish
because removing all such instances causes the code to break.
8 years ago
Yash Tibrewal
83062842c3
Changes for C to C++. Adding extern C to header files for compatibility.
...
Also converting to .cc
8 years ago
Yash Tibrewal
7cdd99c86e
Adding more pointer type conversions
8 years ago
ncteisen
969b46ef73
Add rich closure debug mode
8 years ago
ncteisen
274bbbe6a0
Add rich closure debug mode
8 years ago
Jan Tattermusch
7897ae9308
auto-fix most of licenses
8 years ago
Craig Tiller
dc3998e710
Converting code
8 years ago
ncteisen
4b36a3d9ea
Change error_create API to slice
8 years ago
Craig Tiller
6f4178878c
Add zalloc, convert a bunch of files to use it
8 years ago
yang-g
6da1e85255
Contain the links for the pending handshake managers inside handshake_manager
8 years ago
Craig Tiller
cda759d658
Add an error to fd_shutdown (and recursively)
...
Allows diagnosing WHY a file descriptor was shutdown prematurely.
8 years ago
Masood Malekghassemi
b5b4372670
Use `grpc_closure`s in `grpc_timer`s
8 years ago
Craig Tiller
91031dacb1
Changes to exec_ctx/closure/combiner/workqueue interfaces
...
- make closures know where they should be executed (eg, on a workqueue,
or a combiner, or on an exec_ctx)
- this allows removal of a large number of trampoline functions that
were appearing whenever we used combiners, and should allow for a much
easier interface to combiner locks
8 years ago
Mark D. Roth
887e218ccc
Make grpc_handshaker vtable wrapper functions public.
8 years ago
Mark D. Roth
cc527cf0e4
Provide a way to exit handshaking early without an error.
8 years ago
Mark D. Roth
f6a046e820
Fix race condition during handshake manager shutdown.
8 years ago
Mark D. Roth
b8f97a4ac0
Allow handshaking to be retried.
8 years ago
Mark D. Roth
a9bd94335c
Fix unref-while-lock-held bug. Only shut down handshaker if in progress.
8 years ago
Mark D. Roth
30f698f1bc
Make handshaker responsible for destroying endpoint on shutdown or failure.
8 years ago
Mark D. Roth
447569490d
Eliminate the user_data overloading hack in handshake_manager.
8 years ago
Mark D. Roth
f9b56b93f7
Change grpc_handshaker_args to be owned by the handshake manager.
...
Also clean up hand-off semantics of endpoints.
8 years ago
Mark D. Roth
2ea37e905e
clang-format
8 years ago
Mark D. Roth
fcf5e10bed
clang-format
8 years ago
Mark D. Roth
b16c1e32fd
Move deadline handling to handshake manager.
8 years ago
Mark D. Roth
4b5cdb751e
Change handshaker API to take grpc_closure instead of grpc_iomgr_cb_func.
8 years ago
Mark D. Roth
27588bbfb9
Change handshake manager to invoke callbacks via an exec_ctx.
8 years ago
Craig Tiller
28b72428a8
clang-format
9 years ago
Craig Tiller
d41a4a720f
s/gpr_slice/grpc_slice, and move around tests, impls
9 years ago
Yuxuan Li
f635fb90ca
change from malloc to gpr_malloc
9 years ago
Mark D. Roth
a3e7bd85c0
clang-format
9 years ago
Mark D. Roth
7d9f276ea2
Change handshaker API to use a read buffer to pass leftover bytes read
...
between handshakers.
9 years ago
David Garcia Quintas
c79b0650d2
removed codegen/log.h
9 years ago
David Garcia Quintas
6b11462da1
removed codegen/alloc.h
9 years ago
Mark D. Roth
39377e92cd
Fix API of handshake_manager_add().
9 years ago