Ben Porterfield created JRUBY-6515:
--------------------------------------

             Summary: sending UTF-8 data over SSL can hang with openssl
                 Key: JRUBY-6515
                 URL: https://jira.codehaus.org/browse/JRUBY-6515
             Project: JRuby
          Issue Type: Bug
          Components: OpenSSL
    Affects Versions: JRuby-OSSL 0.7.1
         Environment: jruby 1.6.6 (ruby-1.9.2-p312) (2012-01-30 5673572) (Java 
HotSpot(TM) 64-Bit Server VM 1.6.0_29) [darwin-x86_64-java]
            Reporter: Ben Porterfield
         Attachments: config.ru

Requests seem to hang over ssl when sending back data read from a file. The 
file contains a mix of single-byte UTF-8 characters and double-byte UTF-8 
characters (all at the front in my example, but not in the real case). Over 
http it works fine, and the same app works in https and http in MRI.

With file attached, run rackup and ping http://localhost:3000/ - for me, the 
request hangs for a bit, and curl responds with: * transfer closed with 2 bytes 
remaining to read.

Change :SSLEnable = true to = :SSLEnable = false and hit the http url, and the 
problem goes away. I've put this test case into Webrick, but was having the 
same issue with other server.

Problem is very dependent on length of output - remove a few lines on dots and 
the issue does not occur.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to