seafile-server-core: replace deprecated req->keepalive
access
NOW IT BUILDS!
This commit is contained in:
parent
da79a0f49c
commit
836f3ddb9b
|
@ -29,6 +29,15 @@ Subject: [PATCH] Update upload-file.c
|
|||
|
||||
--- a/server/upload-file.c 2019-12-26 00:43:14.743019721 +0100
|
||||
+++ b/server/upload-file.new 2019-12-26 01:05:11.166580920 +0100
|
||||
@@ -2306,7 +2306,7 @@
|
||||
/* Set keepalive to 0. This will cause evhtp to close the
|
||||
* connection after sending the reply.
|
||||
*/
|
||||
- req->keepalive = 0;
|
||||
+ evhtp_request_set_keepalive(req, 0);
|
||||
|
||||
fsm->state = RECV_ERROR;
|
||||
}
|
||||
@@ -2607,8 +2607,8 @@
|
||||
}
|
||||
|
||||
|
@ -40,6 +49,15 @@ Subject: [PATCH] Update upload-file.c
|
|||
/* Set arg for upload_cb or update_cb. */
|
||||
req->cbarg = fsm;
|
||||
|
||||
@@ -2623,7 +2623,7 @@
|
||||
/* Set keepalive to 0. This will cause evhtp to close the
|
||||
* connection after sending the reply.
|
||||
*/
|
||||
- req->keepalive = 0;
|
||||
+ evhtp_request_set_keepalive(req, 0);
|
||||
send_error_reply (req, EVHTP_RES_BADREQ, err_msg);
|
||||
|
||||
g_free (repo_id);
|
||||
@@ -2724,32 +2724,32 @@
|
||||
g_free (cluster_shared_dir);
|
||||
|
||||
|
|
Loading…
Reference in a new issue