Commit Graph

98 Commits

Author SHA1 Message Date
Tim Kuehn
f727dac87b Merge branch 'type-ascription' into implicit-return-type 2016-02-11 22:22:14 -08:00
Tim Kuehn
51ec0a1219 Merge branch 'serialize-traits' into type-ascription 2016-02-11 22:04:14 -08:00
Tim Kuehn
dbadbf3ef5 Merge remove-inflight-rpcs into serialize-traits 2016-02-11 22:03:45 -08:00
Tim Kuehn
42d876bf41 Don't panic if on Err from try_clone 2016-02-11 21:57:58 -08:00
Tim Kuehn
7099fccbfa Allow rpc methods with an implicit unit return type 2016-02-11 21:19:04 -08:00
Tim Kuehn
868938d83a Try out type ascription 2016-02-11 00:04:20 -08:00
Tim Kuehn
3a046e783c Merge remove-inflight-rpcs into serialize-traits 2016-02-10 23:52:04 -08:00
Tim Kuehn
7ab3ae8689 Merge server-writer-thread into remove-inflight-rpcs 2016-02-10 23:31:00 -08:00
Tim Kuehn
62a9fb6391 Merge master into server-writer-thread 2016-02-10 23:29:36 -08:00
Tim Kuehn
5ae1d6fe91 Update Cargo.toml license 2016-02-08 13:57:23 -08:00
Tim Kuehn
a58dea0ec5 Update license from dual Apache 2.0/MIT to just MIT. 2016-02-08 11:52:51 -08:00
Adam Wright
5d05ebab26 Merge branch 'client-server-modules' into 'master'
Move client and server code into protocol submodules

Things were getting too large in protocol.rs

See merge request !17
2016-02-09 01:03:15 +05:30
Tim Kuehn
b771854e78 Factor out serialization code into a Serialize and Deserialize trait 2016-02-06 14:53:40 -08:00
Tim Kuehn
22927dedfa Merge branch 'master' into server-writer-thread 2016-02-01 22:35:06 -08:00
Tim Kuehn
e4b483304d Use wildcard dep for now 2016-01-31 22:35:13 -08:00
Tim Kuehn
6e49bcdae9 Amend some documentation 2016-01-31 22:20:43 -08:00
Tim Kuehn
919441c9d0 Document the benchmark 2016-01-31 22:14:43 -08:00
Tim Kuehn
5d8d04d521 Use expect() instead of unwrap() 2016-01-31 22:05:04 -08:00
Tim Kuehn
eb4b47b25b Merge branch 'async' into no-mod 2016-01-31 21:21:50 -08:00
Tim Kuehn
fb468eb81f Merge master into async 2016-01-31 21:21:11 -08:00
Tim Kuehn
f211a4a2e7 Remove the struct InflightRpcs.
We were previously doing a lot of accounting to make sure the server never exits
before all open connection handlers. However, now that we're using scoped threads,
that's taken care of by the scoped library, and we were essentially doing redundant
work.
2016-01-31 20:04:35 -08:00
Tim Kuehn
a4de0db8eb Server: use a writer thread for each open connection 2016-01-29 22:44:02 -08:00
Tim Kuehn
277e707db9 Separate client and server code into protocol submodules 2016-01-29 22:40:22 -08:00
Tim Kuehn
84d402ebf5 Use a writer thread that handles all outbound requests. 2016-01-29 01:24:19 -08:00
Tim Kuehn
e711bb006c Wrap-up:
1. Use a scoped thread pool instead of crossbeam. It uses crossbeam under the hood but doesn't spawn endless threads.
   Hardcoded to 100 threads currently, but we can play with that.
2. Buffer IO. Seems to improve performance.
3. Shuffle around where the stream's timeouts are set. I think they should only need to be set once.
2016-01-28 01:28:56 -08:00
Tim Kuehn
b0f70cf47f Merge branch 'async' into no-mod 2016-01-28 00:30:31 -08:00
Tim Kuehn
a285a5a993 rpc_async means we can't unwrap() the result of sending a reply.
Add a test for this.
2016-01-28 00:29:17 -08:00
Tim
af2d701cfd Merge branch 'debug' into 'master'
Debug



See merge request !13
2016-01-28 11:51:35 +05:30
Adam Wright
707daff475 Remove superfluous log 2016-01-27 22:18:04 -08:00
Tim Kuehn
10d7a87382 Fix doc test 2016-01-27 21:48:20 -08:00
Tim Kuehn
48ebd3c4ed Add documentation to the macro 2016-01-27 21:38:42 -08:00
Tim Kuehn
41c036fa0f Simplify the macro.
No longer create a submodule. It's up to the user to decide how to scope the macro invocation.
The preferred method will be to invoke within a dedicated rpc module.
2016-01-27 21:11:38 -08:00
Tim Kuehn
69f4c954fa Clean up a few tests. 2016-01-27 01:31:41 -08:00
Tim Kuehn
27cb18b309 Add async test 2016-01-27 01:23:52 -08:00
Tim Kuehn
9e6155673f clean up benchmark 2016-01-27 01:20:17 -08:00
Tim Kuehn
6109d825f6 Add an async client 2016-01-27 01:09:01 -08:00
Adam Wright
4db54932d8 Fix brokenness and add another log 2016-01-26 21:17:21 -08:00
Adam Wright
b83a72a4ce Some logs to help with debugging 2016-01-26 21:17:21 -08:00
Tim Kuehn
489ab555c3 Merge branch 'master' of ssh://git.adam-wright.net:10022/shaladdle/tarpc 2016-01-26 21:14:20 -08:00
Adam Wright
9c6a66d81c Increase timeouts. These are too short on linux. 2016-01-26 21:06:49 -08:00
Tim Kuehn
d4a20bde28 Add license and description to Cargo.toml 2016-01-26 20:10:18 -08:00
Tim Kuehn
cd24e87672 Put back an OK unwrap 2016-01-25 23:45:43 -08:00
Tim Kuehn
89ebb4a446 Don't unwrap so nonchalantly 2016-01-25 23:38:45 -08:00
Tim Kuehn
1ec610b7c2 Reorder imports 2016-01-25 23:25:23 -08:00
Tim Kuehn
d1013dd5a8 cargo fmt 2016-01-25 23:11:19 -08:00
Tim Kuehn
0966b2c823 Remove unnecessary call to HashMap::clear 2016-01-25 23:09:14 -08:00
Tim Kuehn
72ab27713d Remove superfluous block 2016-01-25 23:01:23 -08:00
Tim Kuehn
57c058dfbc Use try! where applicable 2016-01-25 22:50:23 -08:00
Tim Kuehn
61e304ddfb Merge branch 'crossbeam' into code-refactor 2016-01-25 22:31:46 -08:00
Tim Kuehn
0d1be7400b Make type param single char 2016-01-25 22:31:13 -08:00