[paramiko] strange behaviour : need help.
jd_jedi@users.sourceforge.net
jdsw2002 at yahoo.com
Tue Oct 3 12:21:21 PDT 2006
Hi
I have written a transport that uses paramiko to create ssh tunnel to remote host and connect to the XMLRPC server on that machine. Basically HTTP requests are tunneled in to remote server and xml response is received back.
I have a transport and I open a channel and return it as socket for XMLRPC proxy to use. For each request a new channel gets created.
self.sock = PHelper.open_channel(self.ssh_transport, "direct-tcpip",
("localhost",self.port), # server port
("localhost",self.localport)) # constant 2000
This works great. But every few requests, transport reads the http header part , but then can not read the body.
I started debugging.. put print statements.. enable logs.. etc. I am quite certain that the server is sending the body and the data (through print statements). On the client side, the channel seems to be closed.. (so I thought! ah, this is is.. channel getting closed prematurely.. or something like that.) Enabled paramiko log and saw something that I do not understand.
One can read from ChannelFile even if the channel is closed ? (or there is some buffering.. going on ?)
I will send the log in a separate emais. One for which everything works. And another for which the body is not read.
Would really appreciate if I can nail this one. (we are ready to release as soon as this is fixed!)
Thanks
/Jd
---------------------------------
All-new Yahoo! Mail - Fire up a more powerful email and get things done faster.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.lag.net/pipermail/paramiko/attachments/20061003/a0867a1d/attachment.htm
More information about the paramiko
mailing list