Changeset 393 in Main
- Timestamp:
- Oct 28, 2024, 8:53:30 AM (3 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Server/server.c
r392 r393 344 344 while(1) { 345 345 if(f != NULL) { 346 char buffer[ 128];347 fread(buffer, size < 128 ? size : 128, 1, f);348 tw_write(ssl, sock, buffer, size < 128 ? size : 128);346 char buffer[512]; 347 fread(buffer, size < 512 ? size : 512, 1, f); 348 tw_write(ssl, sock, buffer, size < 512 ? size : 512); 349 349 } else { 350 tw_write(ssl, sock, (unsigned char*)doc + incr, size < 128 ? size : 128);351 } 352 incr += 128;353 if(size <= 128) break;354 size -= 128;350 tw_write(ssl, sock, (unsigned char*)doc + incr, size < 512 ? size : 512); 351 } 352 incr += 512; 353 if(size <= 512) break; 354 size -= 512; 355 355 } 356 356 }
Note:
See TracChangeset
for help on using the changeset viewer.