David Garcia Quintas
661ad7fc85
We need the iomgr_init for winsocks initialization.
...
Also fixed (thanks @nicolasnoble ) wrong construction of error msg.
9 years ago
David Garcia Quintas
4bc3463108
Introducing grpc_executor, for all your threading needs
9 years ago
Robbie Shade
c6787b263f
Fix broken udp_server_test, by adding exec_ctx to read_cb
9 years ago
David Garcia Quintas
f747bbc043
s/grpc_alarm/grpc_timer && s/grpc_cq_alarm/grpc_alarm
9 years ago
Robbie Shade
a8e2e5263d
Pass through grpc_fd pointer rather than int.
9 years ago
Robbie Shade
109a8dc6d8
Stop shadowing global name
9 years ago
Robbie Shade
147fe701a0
Add grpc_server argument to grpc_udp_server_start
9 years ago
Craig Tiller
b8b1a462e5
Finish cleanup
9 years ago
Craig Tiller
a82950e683
clang-format all core files
9 years ago
Craig Tiller
8af4c33718
Final patches for rename
9 years ago
Craig Tiller
e7db29f8c7
Move argument passing to start of list
9 years ago
Craig Tiller
f5768a6765
Rename init
9 years ago
Craig Tiller
098047b53a
Rename run
9 years ago
Craig Tiller
9f7dc3a4e5
Move argument passing to start of list
9 years ago
Craig Tiller
1be70ccdb8
Move arguments to the start of lists
9 years ago
Craig Tiller
45724b35e4
indent pass to get logical source lines on one physical line
9 years ago
Craig Tiller
af73d78b78
clang-format all core files
9 years ago
Craig Tiller
d9ccbbf6b9
Rename call_list to closure_list
9 years ago
Craig Tiller
d9fdaf204c
Fix tests
9 years ago
Craig Tiller
4fc085fcbb
Test bug fixes
9 years ago
Craig Tiller
62aef62136
Fixes
9 years ago
Craig Tiller
ba496454b2
Fixes
9 years ago
Craig Tiller
294d0ecc05
Call lists compile
9 years ago
Craig Tiller
dfff1b8126
Call list progress
9 years ago
Craig Tiller
d1bec03fa1
Call list progress
9 years ago
Craig Tiller
33825118df
Cleanup
9 years ago
Craig Tiller
3cd6a5158d
Getting stuff working
9 years ago
Craig Tiller
7d57ba138f
Tests compile
9 years ago
Robbie Shade
e388ed3a45
Remove arguments from on_read in test
9 years ago
Craig Tiller
6a6b36c503
Enable -Wconversion
9 years ago
Craig Tiller
f96dfc3cf8
First round of fixing up implicit 64->32 bit conversions
9 years ago
Craig Tiller
32ca48ce0b
Core compiles with -Wsign-conversion
9 years ago
Craig Tiller
73b6606629
Workqueue: interface, test, and posix implementation
9 years ago
Craig Tiller
f406f6c448
Fixed build
9 years ago
Robbie Shade
c8cb4ed45d
Removed on_connect callback from udp_server_test
9 years ago
Craig Tiller
9f80fcf8e7
Cleaning up Windows endpoint code
...
- removed the need to track some state
- fixed chttp2 transport endpoint shutdown management
- made a bunch of tests pass
9 years ago
yang-g
edd4667348
Reduce a timeout causing overflow
9 years ago
Craig Tiller
ae69ad1bcf
Add a portable test of endpoint pairs
9 years ago
Craig Tiller
b029859e58
Revert "Revert "Refactor Endpoint API""
9 years ago
Craig Tiller
99d7b661be
Revert "Refactor Endpoint API"
9 years ago
Craig Tiller
be95249350
Cleanup test, initialize correctly
...
Test was failing on mac because gpr time code was not initialized. Whilst here, clean up the test so that I can understand it again.
9 years ago
Craig Tiller
592e7f2dd0
Refactor Endpoint API
...
- Allow reads to complete immediately
- Unify read/write signatures
- Simplify memory management to allow future optimization work
9 years ago
Craig Tiller
d6c98df792
clang-format all source
9 years ago
Robbie Shade
00436a256d
Update to latest API changes.
9 years ago
Craig Tiller
4c06b820e0
Add a test of non-blocking API behavior
...
... also fix things that were broken :)
9 years ago
Robbie Shade
2b10767bf3
Read from the UDP FD, verify number of bytes read
9 years ago
Robbie Shade
aeb386ce7b
Ensure connect happens to server address
9 years ago
Paul Marks
63541a1de1
Return normalized IPv4 addresses from grpc_sockaddr_to_uri().
...
Users of the high-level API should not care whether we're using AF_INET
or AF_INET6 sockets internally.
9 years ago
Craig Tiller
5ddbb9d405
Allow specific pollers to be woken
...
Currently, if two threads call grpc_completion_queue_pluck on the same
completion queue for different tags, there is a 50% chance that we
deliver the completion wakeup to the wrong poller - forcing the correct
poller to wait until its polling times out before it can return an event
up to the application.
This change tweaks our polling interfaces so that we can indeed wake a
specific poller.
Nothing has been performance tuned yet. It's definitely sub-optimal in a
number of places. Wakeup file-descriptors should be recycled. We should
have a path that avoids calling poll() followed by epoll(). We can
probably live without it right at the second though.
This code will fail on Windows at least (I'll do that port when I'm in the office and have a Windows
machine).
9 years ago
Craig Tiller
1b22b9db94
Add grpc_call_get_peer
9 years ago