mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Phillips (JIRA)" <j...@apache.org>
Subject [jira] Commented: (VYSPER-1) Initial handshake stalls in TLS negotiation with Psi client
Date Wed, 10 Jun 2009 00:03:07 GMT

    [ https://issues.apache.org/jira/browse/VYSPER-1?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12717874#action_12717874
] 

David Phillips commented on VYSPER-1:
-------------------------------------

PSI also sends a XMLProlog once the encrypted session is established....

diff --git a/trunk/src/main/java/org/apache/vysper/xmpp/protocol/worker/EncryptedProtocolWorker.java
b/trunk/src/main/java/org/apache/vysper/xmpp/protocol/worker/EncryptedProtocolWorker.java
index b4cd9ea..37943b1 100644
--- a/trunk/src/main/java/org/apache/vysper/xmpp/protocol/worker/EncryptedProtocolWorker.java
+++ b/trunk/src/main/java/org/apache/vysper/xmpp/protocol/worker/EncryptedProtocolWorker.java
@@ -20,6 +20,7 @@
 package org.apache.vysper.xmpp.protocol.worker;

 import org.apache.vysper.xmpp.modules.core.base.handler.StreamStartHandler;
+import org.apache.vysper.xmpp.modules.core.base.handler.XMLPrologHandler;
 import org.apache.vysper.xmpp.modules.core.sasl.handler.AbstractSASLHandler;
 import org.apache.vysper.xmpp.protocol.ResponseWriter;
 import org.apache.vysper.xmpp.protocol.SessionStateHolder;
@@ -43,6 +44,7 @@ public class EncryptedProtocolWorker extends AbstractStateAwareProtocolWorker
{
     protected boolean checkState(SessionContext sessionContext, SessionStateHolder sessionStateHolder,
Stanza stanza, StanzaHandler stanzaHandler) {
         if (stanzaHandler instanceof StreamStartHandler) return true;
         if (stanzaHandler instanceof AbstractSASLHandler) return true;
+        if (stanzaHandler instanceof XMLPrologHandler) return true;
         ResponseWriter.writeUnsupportedStanzaError(sessionContext);
         return false;
     }


> Initial handshake stalls in TLS negotiation with Psi client
> -----------------------------------------------------------
>
>                 Key: VYSPER-1
>                 URL: https://issues.apache.org/jira/browse/VYSPER-1
>             Project: VYSPER
>          Issue Type: Bug
>         Environment: MacOS, Java 5, Psi 0.11, connection to 'localhost'
>            Reporter: Bernd Fondermann
>
> Nothing seems to happen on StartTLS negotiation when using xmpp client Psi 0.11, while
it works with clients like Smack. The communication just seems to stop. No errors, no timeouts.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message