1d4afb5ceSopenharmony_ciAdd this line after upgrade:
2d4afb5ceSopenharmony_ci
3d4afb5ceSopenharmony_cilws_plat_set_socket_options(struct lws_vhost *vhost, int fd, int unix_skt)
4d4afb5ceSopenharmony_ci{
5d4afb5ceSopenharmony_ci    int max_retry = 2;
6d4afb5ceSopenharmony_ci    if (setsockopt(fd, IPPROTO_TCP, TCP_SYNCNT, &max_retry, sizeof(max_retry)) < 0) {
7d4afb5ceSopenharmony_ci        return 1;
8d4afb5ceSopenharmony_ci    }