You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rpc.RegisterName can't contain "." character
I create a rpctest.go, rpc.RegisterName with "mypkg.Arith".
go run rpctest.go
2013/06/03 13:46:57 rpc: rpc: service/method request ill-formed: mypkg.Arith.Multiply
2013/06/03 13:46:57 arith error:rpc: service/method request ill-formed:
mypkg.Arith.Multiply
exit status 1
I found the rpc use ServiceMethod format: "Service.Method"[1].
But the Service name don't disable the "." character.
So, I create a patch for the net/rpc/server.go[2] for this issue.
---
[1]
http://golang.org/pkg/net/rpc/#Request
[2]
http://golang.org/src/pkg/net/rpc/server.go?s=16428:16608#L546
Attachments:
The text was updated successfully, but these errors were encountered: