Skip to content

Commit

Permalink
Increase the number of connection attempts
Browse files Browse the repository at this point in the history
In "adb forward" mode, it may take a while before the server socket is
listening, so increase the number of connection attempts.

See <#5 (comment)>.
  • Loading branch information
rom1v committed Mar 16, 2018
1 parent 821ec98 commit c65cb36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/server.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ socket_t server_connect_to(struct server *server, Uint32 timeout_ms) {
if (!server->tunnel_forward) {
server->device_socket = net_accept(server->server_socket);
} else {
Uint32 attempts = 10;
Uint32 attempts = 50;
Uint32 delay = 100; // ms
server->device_socket = connect_to_server(server->local_port, attempts, delay);
}
Expand Down

0 comments on commit c65cb36

Please sign in to comment.