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

net/rpc: not compatible with App Engine #2404

Closed
moraes opened this issue Oct 27, 2011 · 5 comments
Closed

net/rpc: not compatible with App Engine #2404

moraes opened this issue Oct 27, 2011 · 5 comments

Comments

@moraes
Copy link
Contributor

moraes commented Oct 27, 2011

The package rpc is not compatible with App Engine.

One of the problems is that the server is designed to keep a persistent connection with
a client, and can't be setup to serve ephemeral individual requests.

Other problem is that the client makes a request using a CONNECT HTTP method, not
supported on App Engine.

And finally, the request is not available in RPC methods, so you can't get an App Engine
context to do anything useful.

I won't propose a solution because I am not familiar enough with the rpc package, but
let's keep it registered.

Related thread:
http://groups.google.com/group/google-appengine-go/browse_thread/thread/b90d1cbf49bd8f41
@rsc
Copy link
Contributor

rsc commented Oct 31, 2011

Comment 1:

Maybe there should be an rpc/httprpc that uses a
single HTTP call per method.  Maybe not.

Status changed to LongTerm.

@rsc
Copy link
Contributor

rsc commented Dec 9, 2011

Comment 2:

Labels changed: added priority-later.

@moraes
Copy link
Contributor Author

moraes commented Jan 29, 2012

Comment 4:

Please close this issue. I had wrong expectations about the net/rpc package. RPC over
HTTP using non-persistent connections should be a different package.

@rsc
Copy link
Contributor

rsc commented Jan 30, 2012

Comment 5:

Status changed to Retracted.

@moraes
Copy link
Contributor Author

moraes commented Jan 31, 2012

Comment 6:

For the record, I implemented a package for this:
http://code.google.com/p/gorilla/source/browse/rpc/doc.go?name=go.weekly.2012-01-27

@golang golang locked and limited conversation to collaborators Jun 24, 2016
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