Skip to content

Retry #127

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 43 commits into from
Sep 18, 2019
Merged

Retry #127

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
db95873
Operate on one datagram at a time
martinthomson Jul 5, 2019
2bec44e
Basic timer wheel
martinthomson Jul 5, 2019
36fcf01
Stub server, basic timer wheel
martinthomson Jul 9, 2019
be53d54
Fixup
martinthomson Aug 5, 2019
0277967
Compiles
martinthomson Aug 5, 2019
39fccdc
Fixup
martinthomson Aug 5, 2019
f9e4123
Working server
martinthomson Aug 6, 2019
312d728
Continuation of same
martinthomson Aug 6, 2019
283916c
clippy
martinthomson Aug 6, 2019
3979767
Retry should now work
martinthomson Aug 6, 2019
d93729f
Don't regress connection state
martinthomson Aug 6, 2019
eda5ce9
clippy
martinthomson Aug 6, 2019
b3df2f4
Add 0-RTT test case
martinthomson Aug 7, 2019
c158a41
More assertions
martinthomson Aug 7, 2019
e9f4c4a
Merge remote-tracking branch 'origin/master' into retry-proper
martinthomson Aug 8, 2019
d4fb640
Remove DerefMut for Datagram
martinthomson Aug 8, 2019
b37e96f
Self-review
martinthomson Aug 8, 2019
af8ccf0
Cleanup some
martinthomson Aug 8, 2019
e0f7d51
Merge branch 'master' into retry-proper
martinthomson Aug 8, 2019
7d9eccf
Remove suppression
martinthomson Aug 12, 2019
13fad33
Merge branch 'master' into retry-proper
martinthomson Aug 12, 2019
0dcba4b
Appease clippy
martinthomson Aug 12, 2019
bb2af9b
fmt
martinthomson Aug 12, 2019
136dcde
Merge remote-tracking branch 'origin/master' into retry-proper
martinthomson Aug 13, 2019
d0988b9
Merge branch 'master' into retry-proper
martinthomson Aug 14, 2019
fad2ae4
Implement idle timeout (API CHANGE)
Aug 11, 2019
5b89ba0
Changes based on review feedback
Aug 13, 2019
937ae1c
fixes from second mt review
Aug 14, 2019
8808126
remove duplicate process_timer
martinthomson Aug 15, 2019
660a1ae
Merge branch 'master' into retry-proper
martinthomson Aug 15, 2019
86e75ad
Merge remote-tracking branch 'origin/master' into retry-proper
martinthomson Aug 16, 2019
c652b59
Merge remote-tracking branch 'origin/master' into retry-proper
martinthomson Aug 19, 2019
391f555
Fixups
martinthomson Aug 19, 2019
7bdc382
Merge remote-tracking branch 'origin/master' into retry-proper
martinthomson Aug 19, 2019
ebb13c2
Merge 'master' in again
martinthomson Aug 21, 2019
cedc265
Merge branch 'master' into retry-proper
martinthomson Aug 29, 2019
302ebbe
Working idle timeout on server
martinthomson Sep 2, 2019
5489e99
Clippy
martinthomson Sep 2, 2019
005e282
Merge branch 'master' into retry-proper
martinthomson Sep 2, 2019
c9de64b
Address missed comment
martinthomson Sep 2, 2019
ca806fd
Merge branch 'master' into retry-proper
martinthomson Sep 2, 2019
84d2dbb
Let the caller determine the form of the object
martinthomson Sep 2, 2019
98ebfea
Merge branch 'master' into retry-proper
martinthomson Sep 18, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions neqo-client/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,14 @@
use neqo_common::{matches, Datagram};
use neqo_crypto::{init, AuthenticationStatus};
use neqo_http3::{Header, Http3Connection, Http3Event, Http3State, Output};
use neqo_transport::Connection;
use neqo_transport::{Connection, FixedConnectionIdManager};

use std::cell::RefCell;
use std::collections::HashSet;
use std::io::{self, ErrorKind};
use std::net::{IpAddr, Ipv4Addr, Ipv6Addr, SocketAddr, ToSocketAddrs, UdpSocket};
use std::process::exit;
use std::rc::Rc;
use std::time::Instant;
use structopt::StructOpt;
use url::Url;
Expand Down Expand Up @@ -241,6 +244,7 @@ fn client(args: Args, socket: UdpSocket, local_addr: SocketAddr, remote_addr: So
Connection::new_client(
args.url.host_str().unwrap(),
&args.alpn,
Rc::new(RefCell::new(FixedConnectionIdManager::new(0))),
local_addr,
remote_addr,
)
Expand Down Expand Up @@ -319,13 +323,17 @@ fn main() {
}

mod old {
use std::cell::RefCell;
use std::collections::HashSet;
use std::net::{SocketAddr, UdpSocket};
use std::process::exit;
use std::rc::Rc;
use std::time::Instant;

use neqo_common::Datagram;
use neqo_transport::{Connection, ConnectionEvent, State, StreamType};
use neqo_transport::{
Connection, ConnectionEvent, FixedConnectionIdManager, State, StreamType,
};

use super::{emit_datagram, Args};

Expand Down Expand Up @@ -443,6 +451,7 @@ mod old {
let mut client = Connection::new_client(
args.url.host_str().unwrap(),
&["http/0.9"],
Rc::new(RefCell::new(FixedConnectionIdManager::new(0))),
local_addr,
remote_addr,
)
Expand Down
2 changes: 1 addition & 1 deletion neqo-common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ edition = "2018"
num-traits = "0.2"
log = "0.4.0"
env_logger = "0.6.1"
lazy_static = "1.2.0"
lazy_static = "1.3.0"
1 change: 1 addition & 0 deletions neqo-common/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ mod datagram;
mod incrdecoder;
pub mod log;
pub mod once;
pub mod timer;

pub use self::codec::{Decoder, Encoder};
pub use self::datagram::Datagram;
Expand Down
Loading