Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RPC not working #215

Closed
gopherbot opened this issue Nov 16, 2009 · 5 comments
Closed

RPC not working #215

gopherbot opened this issue Nov 16, 2009 · 5 comments

Comments

@gopherbot
Copy link
Contributor

by hansglitsch:

The rpc package (and gob package?) appears to not be correctly
encoding/decoding parameters to rpc functions.  I attached a simple example
that reproduces the problem.  

1. expand example into a single folder
2. run ./build.sh 
3. run ./server in one terminal
4. run ./client in another terminal

The client will try to call a function in the server.  The client terminal
will display an error:

2009/11/15 01:26:02 rpc: client protocol error: gob: internal error: field
numbers out of bounds
2009/11/15 01:26:02 error:  gob: internal error: field numbers out of bounds

My environment:
GOBIN=/home/hans/bin
GOARCH=amd64
GOROOT=/home/hans/GoRoot
GOOS=linux

~/GoRoot$ hg log -l 1
changeset:   4015:cb140bac9ab0
tag:         tip
user:        Russ Cox <rsc@golang.org>
date:        Thu Nov 12 14:55:26 2009 -0800
summary:     test/run: unset GREP_OPTIONS

Attachments:

  1. rpc_test.7z (778 bytes)
@gopherbot
Copy link
Contributor Author

Comment 1 by jmhodges:

7zip is a really very rare compression algorithm and few people have an
implementation of it on their machine. Mind posting another version without using it?

@robpike
Copy link
Contributor

robpike commented Nov 16, 2009

Comment 2:

I cannot unpack your archive. Please resubmit with a more familiar packaging.

@gopherbot
Copy link
Contributor Author

Comment 3 by hansglitsch:

Hi, I attached as a zip file.

Attachments:

  1. rpc_test.zip (1277 bytes)

@rsc
Copy link
Contributor

rsc commented Nov 17, 2009

Comment 4:

Owner changed to r...@golang.org.

Status changed to Accepted.

@robpike
Copy link
Contributor

robpike commented Nov 17, 2009

Comment 5:

This issue was closed by revision 30b1b9a.

Status changed to Fixed.

Merged into issue #-.

@golang golang locked and limited conversation to collaborators Jun 24, 2016
@rsc rsc unassigned robpike Jun 22, 2022
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants