--
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 grpc-io+unsubscribe@googlegroups.com.
To post to this group, send email to grp...@googlegroups.com.
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/1d59f06c-bdad-4a00-9f01-1abcd59a7cbc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Does the forked child do any gRPC call at all ? Also, which language ?
On Tue, Mar 7, 2017 at 9:40 AM, AK <anand.s...@gmail.com> wrote:
I am trying to make grpc server a daemon by forking a child and making it exit. But after that the client handshake starts to fail.
E0307 01:15:58.221786152 27094 handshake.c:128] Security handshake failed: {"created":"@1488878158.221756436","description":"Handshake read failed","file":"src/core/lib/security/transport/handshake.c","file_line":237,"referenced_errors":[{"created":"@1488878158.221740996","description":"FD shutdown","file":"src/core/lib/iomgr/ev_epoll_linux.c","file_line":948}]}
This happens if fork() is called after the call to BuildAndStart(). If the same fork is done before BuildAndStart() everything works fine.
--
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 grpc-io+u...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+unsubscribe@googlegroups.com.
To post to this group, send email to grp...@googlegroups.com.
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/c2f99403-4ac5-43bf-b9cf-cfdc3eb149da%40googlegroups.com.
Are you calling any destructors in the forked process before exit? Destroying the server will call shutdown() on the underlying sockets, which will cause problems for the parent process.Ken
On Tue, Mar 7, 2017 at 12:19 PM, AK <anand.s...@gmail.com> wrote:
The forked child simply exits leaving the parent as daemon. I am doing it in C++ on Ubuntu.--
On Tuesday, March 7, 2017 at 12:07:40 PM UTC-8, Nicolas Noble wrote:Does the forked child do any gRPC call at all ? Also, which language ?On Tue, Mar 7, 2017 at 9:40 AM, AK <anand.s...@gmail.com> wrote:--
I am trying to make grpc server a daemon by forking a child and making it exit. But after that the client handshake starts to fail.
E0307 01:15:58.221786152 27094 handshake.c:128] Security handshake failed: {"created":"@1488878158.221756436","description":"Handshake read failed","file":"src/core/lib/security/transport/handshake.c","file_line":237,"referenced_errors":[{"created":"@1488878158.221740996","description":"FD shutdown","file":"src/core/lib/iomgr/ev_epoll_linux.c","file_line":948}]}
This happens if fork() is called after the call to BuildAndStart(). If the same fork is done before BuildAndStart() everything works fine.
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 grpc-io+u...@googlegroups.com.
To post to this group, send email to grp...@googlegroups.com.
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/1d59f06c-bdad-4a00-9f01-1abcd59a7cbc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
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 grpc-io+u...@googlegroups.com.
To post to this group, send email to grp...@googlegroups.com.
Visit this group at https://groups.google.com/group/grpc-io.
To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+unsubscribe@googlegroups.com.
To post to this group, send email to grp...@googlegroups.com.
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/d951fc71-6415-465a-9f56-bf4112c926e1%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+unsubscribe@googlegroups.com.
To post to this group, send email to grp...@googlegroups.com.
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/653cb90f-2322-4032-be3b-fa202469ac2d%40googlegroups.com.