Commit Graph

246 Commits

Author SHA1 Message Date
Dirkjan Ochtman 1e54ee7ee8 Improve robustness of encoded handshake test (fixes #10) 2018-05-21 21:18:10 +02:00
Dirkjan Ochtman 5ec14c185f Move PeerData into conn_state module 2018-05-21 20:52:09 +02:00
Dirkjan Ochtman 680622ebf2 Remove almost unused convenience method 2018-05-21 20:51:59 +02:00
Dirkjan Ochtman 4fa0e684af Fix Travis configuration 2018-05-21 20:20:40 +02:00
Dirkjan Ochtman 32fbd6bbeb Rely on public rustls branch 2018-05-21 20:19:53 +02:00
Dirkjan Ochtman 4ee71cb2c8 Rename Endpoint type to ConnectionState 2018-05-21 20:18:17 +02:00
Dirkjan Ochtman 733faaeb78 Update draft versions in README 2018-05-21 20:13:27 +02:00
Dirkjan Ochtman 7ee593e889 Add Travis CI configuration 2018-05-21 17:30:20 +02:00
Dirkjan Ochtman 7a60ccedf7 Fix use statement order per cargo fmt 2018-05-21 17:29:19 +02:00
Dirkjan Ochtman 6e9d638e4e Start adding some code for HTTP 2018-05-21 17:29:08 +02:00
Dirkjan Ochtman a3e6cbb901 Add back question mark for client socket connect 2018-05-21 17:27:54 +02:00
Dirkjan Ochtman b2e0c83e39 Be more flexible about supporting IPv4 and IPv6 2018-05-21 17:24:23 +02:00
Dirkjan Ochtman 5e79ef3342 Only require tokio-udp for the library 2018-05-19 14:18:54 +02:00
Dirkjan Ochtman 8c27706cec Split up tests module 2018-05-19 14:08:50 +02:00
Dirkjan Ochtman 9f87c5de6b Send one Handshake packet per TLS message to prevent large packets 2018-05-18 15:18:08 +02:00
Dirkjan Ochtman dc950a183c Add logging in the server 2018-05-18 15:16:17 +02:00
Dirkjan Ochtman a53135dc99 Remove reference to staged module http 2018-05-17 20:59:08 +02:00
Dirkjan Ochtman 36b9a8d874 Merge Endpoint packet handling methods 2018-05-17 20:32:08 +02:00
Dirkjan Ochtman 114544197a Make loop nicer as suggested by clippy 2018-05-17 15:00:58 +02:00
Dirkjan Ochtman a05067e358 Let Streams request new stream and notify connection about it 2018-05-17 14:58:09 +02:00
Dirkjan Ochtman 18d7662414 Add mechanism for Streams to wake up connection future 2018-05-17 14:56:34 +02:00
Dirkjan Ochtman a7b2e0868f Make some Endpoint methods private 2018-05-17 14:54:52 +02:00
Dirkjan Ochtman 0311393a6e Let Endpoint queue frames from Streams 2018-05-17 14:49:59 +02:00
Dirkjan Ochtman c405587c7f Enable logging SSL keys 2018-05-17 14:39:33 +02:00
Dirkjan Ochtman d8f16f261a Apply some further clippy suggestions 2018-05-16 23:10:14 +02:00
Dirkjan Ochtman 63a1a408b2 Remove unused method 2018-05-16 23:08:37 +02:00
Dirkjan Ochtman 6dd211007d Let TLS session types return what Side they are 2018-05-16 23:07:20 +02:00
Dirkjan Ochtman 6cf018de62 Yield Streams from ConnectFuture 2018-05-16 22:58:54 +02:00
Dirkjan Ochtman 65266337e5 Implement basic support for StreamIdBlocked frames 2018-05-16 22:39:57 +02:00
Dirkjan Ochtman 1420318e22 Wrap ConnectFuture around generic Future impl for Client 2018-05-16 22:38:55 +02:00
Dirkjan Ochtman 69f043a919 Update max open streams from initial transport parameters 2018-05-16 22:32:35 +02:00
Dirkjan Ochtman dbd698ed7a Use smarter data structures to track open streams 2018-05-16 22:27:58 +02:00
Dirkjan Ochtman 7af569b1f9 Hide clippy lint directives from rustc 2018-05-16 21:09:22 +02:00
Dirkjan Ochtman 10fa7fc2f0 Apply suggestions from clippy to clean up code 2018-05-16 20:41:18 +02:00
Dirkjan Ochtman 44c8a4cfa6 Store encoded packets in Endpoint's send queue 2018-05-16 20:32:57 +02:00
Dirkjan Ochtman f142ca761c Let Endpoint handle packet encoding 2018-05-16 16:34:50 +02:00
Dirkjan Ochtman 55a5b9599b Fix formatting with cargo fmt 2018-05-16 16:10:26 +02:00
Dirkjan Ochtman 9e02025f67 Get rid of unused receive queue 2018-05-16 16:10:07 +02:00
Dirkjan Ochtman 4ef5ee5f2e Add basic Streams object to collect stream interactions 2018-05-15 21:48:27 +02:00
Dirkjan Ochtman 8d31d2a8ab Hoist creation of transport parameters out of TLS code 2018-05-13 21:46:50 +02:00
Dirkjan Ochtman 7b7aeb5749 Implement Default for transport parameter structs 2018-05-13 21:39:05 +02:00
Dirkjan Ochtman 89b1398bba Replace DRAFT_11 with QUIC_VERSION 2018-05-13 21:34:17 +02:00
Dirkjan Ochtman 9b7c118da7 Fix value for initial_version in ClientTransportParameters 2018-05-13 21:31:42 +02:00
Dirkjan Ochtman 9f5a4aa597 Move transport parameter types into separate module 2018-05-13 21:30:17 +02:00
Dirkjan Ochtman b481583476 Store transport parameters from remote 2018-05-13 21:23:14 +02:00
Dirkjan Ochtman 7073e4a1ce Make src_pn field private 2018-05-13 14:53:11 +02:00
Dirkjan Ochtman 4699ec3c9c Update to use new rustls QUIC API 2018-05-13 14:52:52 +02:00
Dirkjan Ochtman e366c59100 Store data for both endpoints in separate struct 2018-05-13 14:13:04 +02:00
Dirkjan Ochtman d9c0fa9960 Fix formatting with cargo fmt 2018-05-13 14:09:36 +02:00
Dirkjan Ochtman c036a12fc5 Streamline how server endpoints pick src_cid values 2018-05-13 14:09:30 +02:00