Changeset 395 in Main for trunk/Server/server.c
- Timestamp:
- Oct 28, 2024, 8:58:10 AM (3 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Server/server.c
r394 r395 346 346 char buffer[512]; 347 347 fread(buffer, size < 512 ? size : 512, 1, f); 348 if(tw_write(ssl, sock, buffer, size < 512 ? size : 512) < 0) return;348 if(tw_write(ssl, sock, buffer, size < 512 ? size : 512) <= 0) return; 349 349 } else { 350 if(tw_write(ssl, sock, (unsigned char*)doc + incr, size < 512 ? size : 512) < 0) return;350 if(tw_write(ssl, sock, (unsigned char*)doc + incr, size < 512 ? size : 512) <= 0) return; 351 351 } 352 352 incr += 512;
Note:
See TracChangeset
for help on using the changeset viewer.