|
|
|
|
@ -290,7 +290,7 @@ int tcp_proxy_server_handle_connect(struct UTUN_INSTANCE* inst, struct ll_entry*
|
|
|
|
|
(int)sock, stream_id, dest_ip[0],dest_ip[1],dest_ip[2],dest_ip[3],ntohs(dest_port), ctx->conn_count); |
|
|
|
|
socket_set_nonblocking(sock); |
|
|
|
|
|
|
|
|
|
rc->tc = tcp_conn_create(inst->ua, sock, 1500, 8192, 32, 8, on_fin_cb, on_error_cb, rc); |
|
|
|
|
rc->tc = tcp_conn_create(inst->ua, sock, 1500, 8192, 4, 0, on_fin_cb, on_error_cb, rc); |
|
|
|
|
if (!rc->tc) { DEBUG_ERROR(DEBUG_CATEGORY_SOCKET, "TCP proxy server: tcp_conn_create failed"); socket_close_wrapper(sock); ctx->conn_count--; u_free(rc); queue_dgram_free(entry); queue_entry_free(entry); return -1; } |
|
|
|
|
rc->tc->on_closed = on_closed_cb; |
|
|
|
|
queue_set_callback(rc->tc->read_queue, read_queue_drain_cb, rc); |
|
|
|
|
|