Skip to content

Commit

Permalink
Adapt to another minor breaking change in websocket API (#80)
Browse files Browse the repository at this point in the history
Adapt to changes from awslabs/aws-c-http#417
  • Loading branch information
graebm authored Jan 3, 2023
1 parent 596c8ae commit b2d1fa6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/secure_tunneling.c
Original file line number Diff line number Diff line change
Expand Up @@ -491,14 +491,14 @@ bool secure_tunneling_send_data_call(struct aws_websocket *websocket, struct aws
static void s_init_websocket_send_frame_options(
struct aws_websocket_send_frame_options *frame_options,
struct data_tunnel_pair *pair) {

AWS_ZERO_STRUCT(*frame_options);
frame_options->payload_length = pair->buf.len + PAYLOAD_BYTE_LENGTH_PREFIX;
frame_options->user_data = pair;
frame_options->stream_outgoing_payload = secure_tunneling_send_data_call;
frame_options->on_complete = s_secure_tunneling_on_send_data_complete_callback;
frame_options->opcode = AWS_WEBSOCKET_OPCODE_BINARY;
frame_options->fin = true;
frame_options->high_priority = false;
AWS_ZERO_STRUCT(frame_options->rsv);
}

static int s_init_data_tunnel_pair(
Expand Down

0 comments on commit b2d1fa6

Please sign in to comment.