Skip to content

Commit

Permalink
Debugging idle timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
ccanel committed Jun 1, 2024
1 parent 9121b0d commit 7fa2a5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ratemon/runtime/c/libratemon_interp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ int close(int sockfd) {
bpf_map_delete_elem(flow_to_last_data_time_fd, &fd_to_flow[sockfd]);
// Removing the FD from fd_to_flow triggers it to be (eventually) removed
// from scheduling.
unsigned int d = fd_to_flow.erase(sockfd);
unsigned long d = fd_to_flow.erase(sockfd);
RM_PRINTF("INFO: removed FD=%d (%ld elements removed)\n", sockfd, d);
} else {
RM_PRINTF("INFO: ignoring 'close' for FD=%d, not in fd_to_flow\n", sockfd);
Expand Down

0 comments on commit 7fa2a5a

Please sign in to comment.