When I call RPC, this error will happen. While on the server side, I can get the call successfully.
The error is defined at https://golang.org/src/encoding/gob/decoder.go As the error says, decoder need a pointer.
The wrong rpc call is call(address, name, args, reply)
. Server can receive the call successfully while can not reply, the rpc call fails.
The right way is call(address, name, args, &reply)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.