diff --git a/client.json b/client.json index 1dc1175..3c07bc4 100644 --- a/client.json +++ b/client.json @@ -6,7 +6,7 @@ "sndwnd": 256, "rcvwnd": 256, "nodelay": 1, - "interval": 100, + "interval": 10, "resend": 0, "nc": 1 }, diff --git a/server.json b/server.json index 97138d8..44d7a4f 100644 --- a/server.json +++ b/server.json @@ -6,7 +6,7 @@ "sndwnd": 256, "rcvwnd": 256, "nodelay": 1, - "interval": 100, + "interval": 10, "resend": 0, "nc": 1 }, diff --git a/src/obfs.c b/src/obfs.c index 411578f..e7a8852 100644 --- a/src/obfs.c +++ b/src/obfs.c @@ -644,7 +644,7 @@ static bool obfs_ctx_start( ctx->fd = fd; void (*const obfs_read_cb)( - struct ev_loop *loop, struct ev_io *watcher, int revents) = + struct ev_loop * loop, struct ev_io * watcher, int revents) = (s->conf->mode & MODE_CLIENT) ? obfs_client_read_cb : obfs_server_read_cb; struct ev_io *restrict w_read = &ctx->w_read; @@ -1733,6 +1733,7 @@ static void obfs_on_ready(struct obfs_ctx *restrict ctx) if (!is_client) { return; } + s->pkt.connected = true; obfs->redial_count = 0; server_ping(s); }