/[tewi]/Server/server.c
ViewVC logotype

Diff of /Server/server.c

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.7 by nishi, Sun Oct 27 23:55:30 2024 UTC Revision 1.8 by nishi, Sun Oct 27 23:58:24 2024 UTC
# Line 345  void _tw_process_page(SSL* ssl, int sock Line 345  void _tw_process_page(SSL* ssl, int sock
345                  if(f != NULL) {                  if(f != NULL) {
346                          char buffer[512];                          char buffer[512];
347                          fread(buffer, size < 512 ? size : 512, 1, f);                          fread(buffer, size < 512 ? size : 512, 1, f);
348                          if(tw_write(ssl, sock, buffer, size < 512 ? size : 512) < 0) return;                          if(tw_write(ssl, sock, buffer, size < 512 ? size : 512) <= 0) return;
349                  } else {                  } else {
350                          if(tw_write(ssl, sock, (unsigned char*)doc + incr, size < 512 ? size : 512) < 0) return;                          if(tw_write(ssl, sock, (unsigned char*)doc + incr, size < 512 ? size : 512) <= 0) return;
351                  }                  }
352                  incr += 512;                  incr += 512;
353                  if(size <= 512) break;                  if(size <= 512) break;


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

nishi@chaotic.ninja
ViewVC Help
Powered by ViewVC 1.3.0-dev