mirror of
https://github.com/fumiama/simple-kanban.git
synced 2026-06-05 08:20:29 +08:00
修复 粘连检测 sendfile尾指针未定义
This commit is contained in:
2
client.c
2
client.c
@@ -80,6 +80,8 @@ int main(int argc,char *argv[]) { //usage: ./client host port
|
||||
headers.iov_len = sizeof(uint32_t);
|
||||
hdtr.headers = &headers;
|
||||
hdtr.hdr_cnt = 1;
|
||||
hdtr.trailers = NULL;
|
||||
hdtr.trl_cnt = 0;
|
||||
if(!sendfile(fileno(fp), sockfd, 0, &len, &hdtr, 0)) puts("Send file success.");
|
||||
else puts("Send file error.");
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user