Patches item #941898, was opened at 2004-04-25 20:45
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376687&aid=941898&group_id=22866

Category: JBossServer
Group: v3.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Rolf Arne Corneliussen (rolfarne)
Assigned to: Nobody/Anonymous (nobody)
Summary: HttpInvokerProxy slow when using SSL and JSSE

Initial Comment:
(I don't know if this is a bug in JSSE or JBoss)

Symptom:
Every call to public Object invoke(Invocation invocation) 
in HttpInvokerProxy causes a complete SSL handshake, 
leading to poor performance when doing several calls in 
sequence.

Cause:
org.jboss.invocation.http.interfaces.Util.invoke(URL 
externalURL, Invocation mi) reads the MarhalledValue 
from the connection inputstream (the reply from the 
server), and then closes the stream. When using JSSE 
that comes with JDK 1.4.2, the implementation classes 
seems to be left in a state where there could potentially 
be more data to read (but there is not). I belive this is 
the reason that the next HttpsConnection will initiate a 
complete SSL handshake.

Remedy:
Read a byte from the input stream before closing it (it 
will return -1), and the next call to 'invoke' will not 
initiate a SSL handshake.

// Get the response MarshalledValue object
InputStream is = conn.getInputStream(); 
ObjectInputStream ois = new ObjectInputStream(is);
MarshalledValue mv = (MarshalledValue) ois.readObject();
ois.read(); <-- insert code here.
ois.close();
oos.close();

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376687&aid=941898&group_id=22866


-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg=12297
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to