NMAPI: error when opening more than one connection. Happened in IMAP Gateway

Bug #395179 reported by FuePi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenMapi.org
Fix Committed
Undecided
Johannes Roith

Bug Description

1. Start client and connect to account "demo1".
2. Close client.
3. Start client and connect to account "demo1".

20090630-103842.264|| 2|| ||1 Response8
20090630-103846.894|| 2|| ||sldkfj
20090630-103846.895|| 2|| ||C: 2 login "demo1" "demo1"
20090630-103846.895|| 2|| ||command processing: "LOGIN"
20090630-103846.898|| 2|| ||Server0
20090630-103846.900|| 2|| ||Server2
20090630-103846.900|| 2|| ||Server3
20090630-103846.901|| 2|| ||Server4
127.0.0.1
8000
NMapi.MapiException: 0x80040115: MAPI_E_NETWORK_ERROR: Network error or i/o error: host=127.0.0.1 ---> System.IO.IOException: The authentication or decryption has failed. ---> Mono.Security.Protocol.Tls.TlsException: The server stopped the handshake.
  at Mono.Security.Protocol.Tls.SslClientStream.SafeReceiveRecord (System.IO.Stream s) [0x00028] in /build/buildd/mono-2.4.0/mcs/class/Mono.Security/Mono.Security.Protocol.Tls/SslClientStream.cs:263
  at Mono.Security.Protocol.Tls.SslClientStream.OnNegotiateHandshakeCallback (IAsyncResult asyncResult) [0x00011] in /build/buildd/mono-2.4.0/mcs/class/Mono.Security/Mono.Security.Protocol.Tls/SslClientStream.cs:273
  at Mono.Security.Protocol.Tls.SslStreamBase.AsyncHandshakeCallback (IAsyncResult asyncResult) [0x0000c] in /build/buildd/mono-2.4.0/mcs/class/Mono.Security/Mono.Security.Protocol.Tls/SslStreamBase.cs:96
  --- End of inner exception stack trace ---
  at Mono.Security.Protocol.Tls.SslStreamBase.AsyncHandshakeCallback (IAsyncResult asyncResult) [0x0002a] in /build/buildd/mono-2.4.0/mcs/class/Mono.Security/Mono.Security.Protocol.Tls/SslStreamBase.cs:102
  --- End of inner exception stack trace ---
  at NMapi.TeamXChangeSession..ctor (System.String host, Int32 port) [0x000c8] in /home/install/OpenMapi.org/nmapi/providers/NMapi.Provider.TeamXChange/TeamXChangeSession.cs:113
  at NMapi.TeamXChangeSession..ctor (System.String server) [0x00000] in /home/install/OpenMapi.org/nmapi/providers/NMapi.Provider.TeamXChange/TeamXChangeMapiSession.cs:1
  at NMapi.TeamXChangeMapiSession.Logon2 (System.String host, Int32 port, Int32 sessionFlags, System.String user, System.String password, Int32 codePage, Int32 localeId) [0x00019] in /home/install/OpenMapi.org/nmapi/providers/NMapi.Provider.TeamXChange/TeamXChangeMapiSession.cs:133
20090630-103846.905|| 2|| ||Couldn't connect to host!0x80040115: MAPI_E_NETWORK_ERROR: Network error or i/o error: host=127.0.0.1
20090630-103846.905|| 2|| ||2 Response1
20090630-103846.905|| 2|| ||2 Response2
20090630-103846.905|| 2|| ||2 Response3
20090630-103846.905|| 2|| ||2 Response7
20090630-103846.905|| 2|| ||S: 2 NO LOGIN 0x80040115: MAPI_E_NETWORK_ERROR: Network error or i/o error: host=127.0.0.1

20090630-103846.905|| 2|| ||2 Response8
20090630-103846.905|| 2|| || at NMapi.TeamXChangeSession..ctor (System.String host, Int32 port) [0x000c8] in /home/install/OpenMapi.org/nmapi/providers/NMapi.Provider.TeamXChange/TeamXChangeSession.cs:113
  at NMapi.TeamXChangeSession..ctor (System.String server) [0x00000] in /home/install/OpenMapi.org/nmapi/providers/NMapi.Provider.TeamXChange/TeamXChangeMapiSession.cs:1
  at NMapi.TeamXChangeMapiSession.Logon2 (System.String host, Int32 port, Int32 sessionFlags, System.String user, System.String password, Int32 codePage, Int32 localeId) [0x00019] in /home/install/OpenMapi.org/nmapi/providers/NMapi.Provider.TeamXChange/TeamXChangeMapiSession.cs:133

Changed in openmapi:
assignee: nobody → Johannes Roith (johannes-jroith)
summary: - IMAP Gateway: error when reconnecting after restart of client
+ NMAPI: error when opening more than one connection. Happened in IMAP
+ Gateway
Revision history for this message
Achim (achim-derigs) wrote :

Reproducible via command line:

   $ openssl s_client -connect localhost:8000 -reconnect
   8081:error:1409E0E5:SSL routines:SSL3_WRITE_BYTES:ssl handshake failure:s3_pkt.c:530:

Revision history for this message
Achim (achim-derigs) wrote :

openssl s_client - SSL/TLS client program

-connect host:port
           This specifies the host and optional port to connect to. If not specified then an attempt is made to connect to the local host on port 443.

-reconnect
           reconnects to the same server 5 times using the same session ID, this can be used as a test that session caching is working.

Revision history for this message
Fritz Elfert (felfert) wrote :

Fixed in latest git commit

Changed in openmapi:
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.