mirror of
https://github.com/fumiama/simple-kanban.git
synced 2026-06-08 01:51:32 +08:00
修复错误
This commit is contained in:
2
server.c
2
server.c
@@ -222,7 +222,7 @@ int s3_setData(THREADTIMER *timer) {
|
||||
puts("Set data error.");
|
||||
return closeFileAndSend(timer, "erro", 4);
|
||||
}
|
||||
int32_t remain = file_size - BUFSIZ;
|
||||
int32_t remain = file_size - timer->numbytes;
|
||||
while(remain > 0) {
|
||||
printf("remain:%d\n", remain);
|
||||
timer->numbytes = recv(timer->accept_fd, timer->data, BUFSIZ, 0);
|
||||
|
||||
Reference in New Issue
Block a user