Skip to content

Commit

Permalink
set active to false when closing a connection ; don't 0 the entire ne…
Browse files Browse the repository at this point in the history
…t object
  • Loading branch information
seanvaleo committed Dec 22, 2022
1 parent 0b36c4c commit 6b6f06b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/state.c
Original file line number Diff line number Diff line change
Expand Up @@ -2364,7 +2364,7 @@ doClose(int fd, const char *func)
// report everything before the info is lost
reportFD(fd, EVENT_BASED);

if (ninfo) scope_memset(ninfo, 0, sizeof(struct net_info_t));
if (ninfo) ninfo->active = FALSE;
if (fsinfo) scope_memset(fsinfo, 0, sizeof(struct fs_info_t));

if (guard_enabled) while (!atomicCasU64(&g_http_guard[fd], 1ULL, 0ULL));
Expand Down

0 comments on commit 6b6f06b

Please sign in to comment.