Skip to content

Commit

Permalink
Remove debug ifdef
Browse files Browse the repository at this point in the history
  • Loading branch information
huitema committed Jan 5, 2024
1 parent 4d69475 commit 6ca5807
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 21 deletions.
5 changes: 0 additions & 5 deletions picoquic/sockloop.c
Original file line number Diff line number Diff line change
Expand Up @@ -819,11 +819,6 @@ int picoquic_packet_loop_v2(picoquic_quic_t* quic,

/* TODO: verify htons/ntohs */
int selected_socket = -1;
#if 1
if (param->extra_socket_required && nb_sockets != nb_sockets_available) {
DBG_PRINTF("%s", "Bug");
}
#endif
for (int i = 0; i < nb_sockets_available; i++) {
if (s_ctx[i].af == peer_addr.ss_family) {
send_socket = s_ctx[i].fd;
Expand Down
18 changes: 2 additions & 16 deletions picoquicfirst/picoquicdemo.c
Original file line number Diff line number Diff line change
Expand Up @@ -589,9 +589,8 @@ int client_loop_cb(picoquic_quic_t* quic, picoquic_packet_loop_cb_enum cb_mode,
if (simulate_multipath) {
#if 1
ret = simulate_migration(cb_ctx);
cb_ctx->migration_started = 1;
#else
ret = PICOQUIC_NO_ERROR_SIMULATE_MIGRATION;
cb_ctx->migration_started = 1;
#endif
}
}
Expand Down Expand Up @@ -659,12 +658,8 @@ int client_loop_cb(picoquic_quic_t* quic, picoquic_packet_loop_cb_enum cb_mode,
break;
case 3:
fprintf(stdout, "Will test migration to new port.\n");
#if 1
ret = simulate_migration(cb_ctx);
cb_ctx->migration_started = 1;
#else
ret = PICOQUIC_NO_ERROR_SIMULATE_MIGRATION;
#endif
break;
default:
cb_ctx->migration_started = -1;
Expand Down Expand Up @@ -957,7 +952,7 @@ int quic_client(const char* ip_address_text, int server_port,
else if (!is_quicperf) {
loop_cb.demo_callback_ctx = &callback_ctx;
}
#if 1

/* In case needed, program an extra path, so we can simulate multipath or migration */
param.local_af = loop_cb.server_address.ss_family;
param.socket_buffer_size = config->socket_buffer_size;
Expand All @@ -970,15 +965,6 @@ int quic_client(const char* ip_address_text, int server_port,
loop_cb.local_port = param.local_port;

ret = picoquic_packet_loop_v2(qclient, &param, client_loop_cb, &loop_cb);
#else
#ifdef _WINDOWS_BUT_WE_ARE_UNIFYING
ret = picoquic_packet_loop_win(qclient, 0, loop_cb.server_address.ss_family, 0,
config->socket_buffer_size, client_loop_cb, &loop_cb);
#else
ret = picoquic_packet_loop(qclient, 0, loop_cb.server_address.ss_family, 0,
config->socket_buffer_size, config->do_not_use_gso, client_loop_cb, &loop_cb);
#endif
#endif
}

if (ret == 0) {
Expand Down

0 comments on commit 6ca5807

Please sign in to comment.