Ask a Question related to Ruby, Design and Development.

  1. #1

    Default ssl bad write retry

    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
    [url]http://clabs.org/blogki[/url]



    Chris Morris Guest

  2. Similar Questions and Discussions

    1. PDF request service (second retry)
      greetings and salutations, o smarter than i. i've been working on a solution to secure the delivery of pdfs to client browsers. we're introducing...
    2. PDF request service (retry post)
      ??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????...
    3. CFMX7 PROBLEM!!! Auto retry upon request timeout
      Just upgraded to CFMX7 from CF5. Basically everything is running smoothly expect one serious problem. We have a process which takes more than 3...
    4. A code snippet: Controlled retry
      I sometimes find myself retrying operations when in a networked situation (e.g., maybe server isn't up, just try again). I just wrote this little...
    5. retry does not work
      matz: you rejected my rcr on garden saying that retry already does it. but it does not. maybe there's a trick to it? but i could not read your...
  3. #2

    Default Re: ssl bad write retry

    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 Guest

  4. #3

    Default Re: ssl bad write retry

    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
    [url]http://clabs.org/blogki[/url]



    Chris Morris Guest

  5. #4

    Default Re: ssl bad write retry

    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

    GOTOU Yuuzou Guest

  6. #5

    Default Re: ssl bad write retry

    >
    >
    >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
    >
    I finally got back to looking at this and the problem had nothing to do
    with ssl at all. Stupid web site setup error on my part. Sorry for the
    noise.

    --

    Chris
    [url]http://clabs.org/blogki[/url]



    Chris Morris Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139