rpc: client protocol error: unexpected EOF
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
You can look for the following errors returned by an rpc call...rpc.ErrShutdownio.EOFio.ErrUnexpectedEOFThose are the ones I’ve encountered in production.On Tue, Aug 6, 2013 at 11:11 AM, liuyu...@gmail.com <liuyu...@gmail.com> wrote:
I do want to implement it myself. But how can I know the connection lost.
在 2013年8月6日星期二,Andy Bonventre 写道:As I understand it, it’s your responsibility to implement reconnect logic that fits your use case. I would venture a guess that the net/rpc authors eschewed reconnect logic because there are too many variables that are dependent on the environment.On Tue, Aug 6, 2013 at 8:44 AM, Jarod Liu <liuyu...@gmail.com> wrote:
when the server stop. the rpc client complains:rpc: client protocol error: unexpected EOFI read the code, this error contain in a internal method input(). the rpc client keep error internal, and not do reconect itself. how can I reconnect to server, after the server restart.--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.