Re: [Simpleweb-Support] SSL problem
Brought to you by:
niallg
|
From: Niall G. <gal...@ya...> - 2005-10-19 19:50:27
|
Hi Martin, I have used SSL quite frequently in Java 4, and never encountered this problem. Although I can say that the broken pipe you see on the server side indicates that it is the client that is closing the socket. If the client is closing the connection then there is misconfiguration of the SSL socket. SSL is intependant from HTTP, so I can't really say whats happening. However, I can imagine that if you are using a self signed certificate and are prompted to accept from your browser this can take about 5 to 10 seconds, and in the meantime there could be a premature close of the socket before the SSL handshake protocol has finished. If there is a premature closure (which is probably not the case as you see "broken pipe" messages) I would recommend that you increase the timeout that Simple is using. To do this make sure the simple.http.poller=simple.http.GranularPoller. You can set this with a -D parameter like so: java -Dsimple.http.poller=simple.http.GranularPoller I hope this solves your problem, or at least helps? Niall --- Martin Norrsken <mar...@gm...> wrote: > While using simpleweb with SSL on a Java5 platform i > consistently get > the following client error from time to time: > > javax.net.ssl.SSLException: Received fatal alert: > unexpected_message > > and i get a broken pipe exception at the server > side. > > Do you have any special recommendations on how to > use SimpleWeb in an > SSL environment? Should i use some kind of OpenSSL > wrapper instread of > JSSE? > > /Martin > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Power Architecture Resource Center: Free content, > downloads, discussions, > and more. > http://solutions.newsforge.com/ibmarch.tmpl > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > Niall Gallagher __________________________________ Start your day with Yahoo! - Make it your home page! http://www.yahoo.com/r/hs |