Skip to content

Commit

Permalink
Suppress socket timeout warning on user shutdown.
Browse files Browse the repository at this point in the history
  • Loading branch information
adamshapiro0 committed Mar 27, 2024
1 parent dec6570 commit bda0bc0
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions c/src/point_one/polaris/polaris.c
Original file line number Diff line number Diff line change
Expand Up @@ -666,8 +666,13 @@ int Polaris_Work(PolarisContext_t* context) {
bytes_read = original_bytes_read;
errno = original_errno;
#endif
P1_PrintReadWriteError(
context, "Warning: Socket read timed out", bytes_read);
if (context->disconnected) {
P1_DebugPrintReadWriteError(context, "Socket read timed out",
bytes_read);
} else {
P1_PrintReadWriteError(context, "Warning: Socket read timed out",
bytes_read);
}

return POLARIS_TIMED_OUT;
}
Expand Down

0 comments on commit bda0bc0

Please sign in to comment.