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.


Reply via email to