Skip to content

Commit

Permalink
Merge branch 'main' into ci-nss-sccache
Browse files Browse the repository at this point in the history
  • Loading branch information
larseggert authored Sep 16, 2024
2 parents 8d54a50 + 5410bd0 commit a54835c
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 4 deletions.
1 change: 0 additions & 1 deletion .github/actions/nss/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ runs:
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
repository: nss-dev/nss
ref: c631e9cb5ed1806038f7b85fbbc825f856c9d133 # later revisions hang when building on Windows
path: nss

- name: Checkout NSPR
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/firefox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,10 @@ jobs:
EXT: ${{ runner.os == 'macOS' && '.app' || '' }}
run: |
cd mozilla-unified
# Work around "ERROR: WINDOWSSDKDIR cannot be set when using the bootstrapped WINSYSROOT"
# (Capitalization "WindowsSdkDir" matters)
[ "${{ runner.os }}" == "Windows" ] && unset WindowsSdkDir
./mach build && tar -cf "../$FIREFOX.tar" -C "../$FIREFOX/dist" "$NAME$TYPE$EXT"
exit 0
- name: Export binary
id: upload
Expand All @@ -138,7 +140,7 @@ jobs:

comment:
name: Comment on PR
if: always()
if: github.event.pull_request.draft == false
needs: firefox
runs-on: ubuntu-latest
steps:
Expand Down
26 changes: 25 additions & 1 deletion neqo-transport/src/connection/tests/handshake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ use crate::{
events::ConnectionEvent,
server::ValidateAddress,
stats::FrameStats,
tparams::{TransportParameter, MIN_ACK_DELAY},
tparams::{self, TransportParameter, MIN_ACK_DELAY},
tracking::DEFAULT_ACK_DELAY,
CloseReason, ConnectionParameters, EmptyConnectionIdGenerator, Error, Pmtud, StreamType,
Version,
Expand Down Expand Up @@ -1252,3 +1252,27 @@ fn server_initial_retransmits_identical() {
total_ptos += pto;
}
}

#[test]
fn grease_quic_bit_transport_parameter() {
fn get_remote_tp(conn: &Connection) -> bool {
conn.tps
.borrow()
.remote
.as_ref()
.unwrap()
.get_empty(tparams::GREASE_QUIC_BIT)
}

for client_grease in [true, false] {
for server_grease in [true, false] {
let mut client = new_client(ConnectionParameters::default().grease(client_grease));
let mut server = new_server(ConnectionParameters::default().grease(server_grease));

connect(&mut client, &mut server);

assert_eq!(client_grease, get_remote_tp(&server));
assert_eq!(server_grease, get_remote_tp(&client));
}
}
}

0 comments on commit a54835c

Please sign in to comment.