Fossil

Check-in [8d60cd57]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:In the Win32 server code, prevent fclose() from being called on an already closed FILE.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 8d60cd571922d0f90b7b0b5fd3c155eba0d3e21dd99d6381452b8c8589b01a15
User & Date: mistachkin 2017-12-28 17:16:39.169
Context
2017-12-28
17:20
Improvements to the fossil-stress.tcl script to automaticall restart stalled request threads. ... (check-in: 1fae64de user: drh tags: trunk)
17:16
In the Win32 server code, prevent fclose() from being called on an already closed FILE. ... (check-in: 8d60cd57 user: mistachkin tags: trunk)
16:04
In fossil-stress.tcl, retry connection failures after a 1-second delay. ... (check-in: 7ce35a04 user: drh tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/winhttp.c.
197
198
199
200
201
202
203

204
205
206
207
208
209
210
      get_utf8_bom(0), zRequestFName, zReplyFName, inet_ntoa(p->addr.sin_addr)
    );
  }
  out = fossil_fopen(zCmdFName, "wb");
  if( out==0 ) goto end_request;
  fwrite(zCmd, 1, strlen(zCmd), out);
  fclose(out);


  sqlite3_snprintf(sizeof(zCmd), zCmd, "\"%s\" http -args \"%s\" --nossl%s",
    g.nameOfExe, zCmdFName, p->zOptions
  );
  fossil_system(zCmd);
  in = fossil_fopen(zReplyFName, "rb");
  if( in ){







>







197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
      get_utf8_bom(0), zRequestFName, zReplyFName, inet_ntoa(p->addr.sin_addr)
    );
  }
  out = fossil_fopen(zCmdFName, "wb");
  if( out==0 ) goto end_request;
  fwrite(zCmd, 1, strlen(zCmd), out);
  fclose(out);
  out = 0;

  sqlite3_snprintf(sizeof(zCmd), zCmd, "\"%s\" http -args \"%s\" --nossl%s",
    g.nameOfExe, zCmdFName, p->zOptions
  );
  fossil_system(zCmd);
  in = fossil_fopen(zReplyFName, "rb");
  if( in ){