Changeset 395 in Main for trunk


Ignore:
Timestamp:
Oct 28, 2024, 8:58:10 AM (3 weeks ago)
Author:
Nishi
Message:

handle

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Server/server.c

    r394 r395  
    346346                        char buffer[512];
    347347                        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;
    349349                } 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;
    351351                }
    352352                incr += 512;
Note: See TracChangeset for help on using the changeset viewer.