jruby-openssl: SSLSocket.syswrite error for big (>16k) data
-----------------------------------------------------------

                 Key: JRUBY-3288
                 URL: http://jira.codehaus.org/browse/JRUBY-3288
             Project: JRuby
          Issue Type: Bug
          Components: JRuby-extras, OpenSSL
    Affects Versions: JRuby-OpenSSL 0.3
         Environment: Linux mort-note 2.6.27-11-generic #1 SMP Fri Dec 19 
16:29:52 UTC 2008 i686 GNU/Linux
java version "1.6.0_10"
Java(TM) SE Runtime Environment (build 1.6.0_10-b33)
Java HotSpot(TM) Client VM (build 11.0-b15, mixed mode, sharing)
jruby 1.1.5, jruby 1.1.6

            Reporter: Miklos Bali


Using jruby-openssl if I try to write large chunks of data on a secure socket, 
the write seems to be OK, but it looks like the other size doesn't receive all 
of it. Experimenting with {{OpenSSL::TestSSL}} testcase's 
{{test_read_and_write}} test, I could reproduce this behavior, and it looks 
like the upper limit of bytes for which the test succeeds is 16384.

If I change
{{str = "x" * 100 + "\n"}}
to
{{str = "x" * 16 * 1024 + "\n"}}
, syswrite returns 16385 as expected, but the sysread after that hangs, and 
nothing is coming back from the server (According to Wireshark).

I've found no other workaround yet, than to "manually" chop up the data I send.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.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