I’ve got a Ruby script that uploads a file to another Ruby cgi script.
It works fine on a non-ssl site, but when I use the SSL site with
net/https, I get the following error:
c:/ruby/lib/ruby/1.8/openssl/buffering.rb:139:in syswrite': SSL_write:: bad wri te retry (OpenSSL::SSL::SSLError) from c:/ruby/lib/ruby/1.8/openssl/buffering.rb:139:in
do_write’
from c:/ruby/lib/ruby/1.8/openssl/buffering.rb:181:in flush' from c:/ruby/lib/ruby/1.8/openssl/buffering.rb:186:in
close’
from c:/ruby/lib/ruby/1.8/net/protocol.rb:92:in close' from c:/ruby/lib/ruby/1.8/net/protocols.rb:49:in
close’
from c:/ruby/lib/ruby/1.8/net/http.rb:436:in finish' from c:/ruby/lib/ruby/1.8/net/http.rb:412:in
start’
from c:/ruby/lib/ruby/1.8/net/http.rb:810:in `request’
Any clues on where I should look next?
···
–
Chris
http://clabs.org/blogki
In message 3F6F53AE.8090109@clabs.org,
···
`Chris Morris chrismo@clabs.org’ wrote:
I’ve got a Ruby script that uploads a file to another Ruby cgi script.
It works fine on a non-ssl site, but when I use the SSL site with
net/https, I get the following error:
c:/ruby/lib/ruby/1.8/openssl/buffering.rb:139:in syswrite': SSL_write:: bad wri te retry (OpenSSL::SSL::SSLError) from c:/ruby/lib/ruby/1.8/openssl/buffering.rb:139:in
do_write’
from c:/ruby/lib/ruby/1.8/openssl/buffering.rb:181:in flush' from c:/ruby/lib/ruby/1.8/openssl/buffering.rb:186:in
close’
from c:/ruby/lib/ruby/1.8/net/protocol.rb:92:in close' from c:/ruby/lib/ruby/1.8/net/protocols.rb:49:in
close’
from c:/ruby/lib/ruby/1.8/net/http.rb:436:in finish' from c:/ruby/lib/ruby/1.8/net/http.rb:412:in
start’
from c:/ruby/lib/ruby/1.8/net/http.rb:810:in `request’
Any clues on where I should look next?
I couldn’t reproduce this error by my short script. Can I
have the script which makes same error on your environment?
And please send me a message with OpenSSL::debug=true.
–
gotoyuzo
GOTOU Yuuzou wrote:
I couldn’t reproduce this error by my short script. Can I
have the script which makes same error on your environment?
And please send me a message with OpenSSL::debug=true.
I may be able to get you something in a day or two, but I’m swamped with
other tasks unfortunately.
I’m running on Windows with precompiled ssl…dlls I got from
somewhere. Could this be the problem, a bad .dll?
···
–
Chris
http://clabs.org/blogki
In message 3F704FE3.9010209@clabs.org,
···
`Chris Morris chrismo@clabs.org’ wrote:
GOTOU Yuuzou wrote:
I couldn’t reproduce this error by my short script. Can I
have the script which makes same error on your environment?
And please send me a message with OpenSSL::debug=true.
I may be able to get you something in a day or two, but I’m swamped with
other tasks unfortunately.
I’m running on Windows with precompiled ssl…dlls I got from
somewhere. Could this be the problem, a bad .dll?
I have never used it on Windows…
At first, I intend to make environment to test it.
–
gotoyuzo