Hi,
I've got a sync C++ client that opens a long lived bidirectional stream to
a sync C++ server. I'm seeing an issue where if I keep my client open and
then put my machine to sleep, the connection is terminated a number of
hours. Here are the logs I got.
I connected the client at 00:25, and then got the following log:
18/10/2021 03:07:48.578
File: src\core\ext\transport\chttp2\transport\chttp2_transport.cc
Line: 2871
Message: ipv4:127.0.0.1:51656: Keepalive watchdog fired. Closing transport.
Then at the time I woke up my machine from sleep mode, I saw the following
log:
18/10/2021 09:22:15.372
src\core\lib\security\transport\security_handshaker.cc
Line: 183
Message: Security handshake failed:
{"created":"@1634545335.372000000","description":"Handshake read
failed","file":"src\17cc203898-db2679e7f2.clean\src\core\lib\security\transport\security_handshaker.cc","file_line":425,"referenced_errors":[{"created":"@1634545335.372000000","description":"TCP
stream shutting
down","file":"src\17cc203898-db2679e7f2.clean\src\core\lib\iomgr\tcp_windows.cc","file_line":228,"referenced_errors":[{"created":"@1634545334.503000000","description":"Handshake
timed
out","file":"src\17cc203898-db2679e7f2.clean\src\core\lib\channel\handshaker.cc","file_line":163}]}]}
I haven't set GRPC_ARG_KEEPALIVE_TIME_MS on the client channel, which
according to the documentation is disabled by default. Do I need to
configure keepalive settings on the client to resolve this issue, or is
there something else going on?
Thanks
--
You received this message because you are subscribed to the Google Groups
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/grpc-io/cad528c8-2511-4d18-86c9-3b5730571a93n%40googlegroups.com.