what is "sync_connect"? and why would you connect an rpyc client to a WSGI
server? it's not the different protocols. you can use requests/urllib to
consume HTTP services.
what has rpyc even to do with it?

-tomer

-----------------------------------------------------------------

*Tomer Filiba*
tomerfiliba.com     <http://www.facebook.com/tomerfiliba>
<http://il.linkedin.com/in/tomerfiliba>


On Sat, Apr 13, 2013 at 3:53 AM, Luke Powers <[email protected]> wrote:

> Hello
>
> Anyone have any experience connecting to a uwsgi app with RPyC?  I'm
> currently unable to connect using uwsgi as it expects to be run inside of
> an instance with uwsgi imported (ie a uwsgi app).
>
> I have the following rpc server:
>
> import simplejson as json
> from uwsgidecorators import rpc
> import uwsgi
>
> @rpc('testing_call')
>
> def
> testing_call(test_param):
>     print 'got a call'
>     return json.dumps({'test_param':test_param})
>
> #Run with
> #/opt/bin/uwsgi --import uwsgi_rpc_test -s :3737 -M  --enable-threads -p 1
>
> But I am unable to connect to this app with RPyC with any connection
> method.
>
> import rpyc
> c = rypc.connect('127.0.0.1', port=3737)
> c.sync_connect('testing_call')
>
> This code just generates the following error from RPyC:
> EOFError: [Errno 104] Connection reset by peer
>
> And the following error message from the uwsgi app:
> Empty python request. skip.
> [pid: 9468|app: -1|req: -1/3]  () {0 vars in 0 bytes} [Fri Apr 12
> 17:51:27 2013]   => generated 0 bytes in 0 msecs ( 0) 0 headers in 0
> bytes (0 switches on core 0)
>
>
> Anyone have some advice?
> Thanks
>
>  --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "rpyc" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"rpyc" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to