1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

deaddrop: extend timeout as data comes in

This commit is contained in:
Andy Green 2019-01-24 10:59:47 +08:00
parent e63b3a6348
commit bedc358dde

View file

@ -299,6 +299,7 @@ file_upload_cb(void *data, const char *name, const char *filename,
n = write((int)(long long)pss->fd, buf, len);
lwsl_debug("%s: write %d says %d\n", __func__,
len, n);
lws_set_timeout(pss->wsi, PENDING_TIMEOUT_HTTP_CONTENT, 30);
}
}
if (state == LWS_UFS_CONTENT)