change the timeout to something sane
git-svn-id: file:///home/svn/framework3/trunk@10006 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
d28e1c0d4f
commit
7b521b8ef2
|
@ -44,7 +44,7 @@ class Session < Base
|
||||||
end
|
end
|
||||||
|
|
||||||
begin
|
begin
|
||||||
if(not s.rstream.has_read_data?(0))
|
if(not s.rstream.has_read_data?(0.001))
|
||||||
{ "data" => "", "encoding" => "base64" }
|
{ "data" => "", "encoding" => "base64" }
|
||||||
else
|
else
|
||||||
data = s.shell_read
|
data = s.shell_read
|
||||||
|
@ -62,9 +62,10 @@ class Session < Base
|
||||||
raise ::XMLRPC::FaultException.new(403, "session is not a shell")
|
raise ::XMLRPC::FaultException.new(403, "session is not a shell")
|
||||||
end
|
end
|
||||||
buff = Rex::Text.decode_base64(data)
|
buff = Rex::Text.decode_base64(data)
|
||||||
|
cnt = s.shell_write(buff)
|
||||||
|
|
||||||
begin
|
begin
|
||||||
{ "write_count" => s.shell_write(buff) }
|
{ "write_count" => cnt }
|
||||||
rescue ::Exception => e
|
rescue ::Exception => e
|
||||||
raise ::XMLRPC::FaultException.new(500, "session disconnected: #{e.class} #{e}")
|
raise ::XMLRPC::FaultException.new(500, "session disconnected: #{e.class} #{e}")
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue