mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-11 09:16:59 +08:00
keep the connection alive
This commit is contained in:
@@ -207,10 +207,7 @@ struct stat st;
|
||||
if (ret < 0)
|
||||
return -1;
|
||||
|
||||
#if 0
|
||||
ret = tls_puts(ws->session, "Connection: Keep-Alive\r\n");
|
||||
#endif
|
||||
ret = tls_puts(ws->session, "Connection: Close\r\n");
|
||||
if (ret < 0)
|
||||
return -1;
|
||||
|
||||
@@ -240,7 +237,7 @@ struct stat st;
|
||||
|
||||
oclog(ws, LOG_DEBUG, "sent file %s (%u bytes)", path, (unsigned)st.st_size);
|
||||
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user