#1 Yesterday 19:09:54

itSDS
Member
From: Germany
Registered: 2014-04-24
Posts: 593

mormot throwing Exception ESChannel {Message:"recv: Handshake aborted"

Hello Arnaud, we are also using m2 with self-signed certificates in our test environment.

In mormot.net.sock.windows.inc there is a place where you raise: ESChannel {Message: "recv: Handshake aborted"}
when res = 0
in FreeAndCheckSocket.

Is it necessary for this very frequent exception to appear as an error in the log?
It’s a bit confusing. Or is it actually an error and we need to do something differently here?

Also like to ask if there is an option to shorten the Exception:

20251211 19560724  # EXC   ESChannel {Message:"recv: Handshake aborted"} [R1:IMSYS ThumbnailCache BinaryD] at 0116540e LiteStaticUni.pas sqlite3win64_xe5.sqlite3BtreeOpen (1439)  System.Classes.pas .{System.Generics.Collections}TList<System.Classes.TPersistentClass> (3555) System.Classes.pas .{System.Generics.Collections}TList<System.Classes.TPersistentClass> (3555) System.pas ReductionPi2n (10160) LiteStaticUni.pas sqlite3win64_xe5.sqlite3BtreeOpen (1439) LiteStaticUni.pas sqlite3win64_xe5.sqlite3PagerClose (1439) LiteStaticUni.pas sqlite3win64_xe5.sqlite3PagerSetPagesize (1439) LiteStaticUni.pas sqlite3win64_xe5.sqlite3Select (1439) LiteStaticUni.pas sqlite3win64_xe5.sqlite3CreateIndex (1439) LiteStaticUni.pas sqlite3win64_xe5.sqlite3CreateIndex (1439) LiteStaticUni.pas sqlite3win64_xe5.sqlite3CreateForeignKey (1439) .{System.Generics.Collections}TList<DFDatenbankenStruktur.TDFESIndex> System.Generics.Collections.pas TArray.BinarySearch<System.Pointer> (1389) System.pas Ln (11082)  {8 3.36 2.74 18.5GB/63.9GB 23f00f01}

without the call Stack ?


Rad Studio 12.3 Athens / 13.0 Ganymede

Offline

#2 Yesterday 20:12:53

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 15,325
Website

Re: mormot throwing Exception ESChannel {Message:"recv: Handshake aborted"

It comes from the Windows TLS API.

Is it on a server or a client?
Which version of Windows?

For a server, use OpenSSL instead.

Offline

#3 Today 07:43:10

itSDS
Member
From: Germany
Registered: 2014-04-24
Posts: 593

Re: mormot throwing Exception ESChannel {Message:"recv: Handshake aborted"

It happens on the Server, Windows 11 ARM


Rad Studio 12.3 Athens / 13.0 Ganymede

Offline

#4 Today 07:47:10

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 15,325
Website

Re: mormot throwing Exception ESChannel {Message:"recv: Handshake aborted"

Do you compile as a Win64 executable?

It may be due to PRISM itself, especially to the fact that this emulator does not like multiple threads, so it becomes unstable on WinArm.
With PRISM, we had to reduce the number of threads to let mormot2tests pass.
It is as known and documented.

Offline

#5 Today 08:32:03

itSDS
Member
From: Germany
Registered: 2014-04-24
Posts: 593

Re: mormot throwing Exception ESChannel {Message:"recv: Handshake aborted"

I testet it with OpenSSL (USE_OPENSSL defined) same error, is there anything more i have to do to activate openssl ?


Rad Studio 12.3 Athens / 13.0 Ganymede

Offline

#6 Today 08:33:07

itSDS
Member
From: Germany
Registered: 2014-04-24
Posts: 593

Re: mormot throwing Exception ESChannel {Message:"recv: Handshake aborted"

ab wrote:

Do you compile as a Win64 executable?

It may be due to PRISM itself, especially to the fact that this emulator does not like multiple threads, so it becomes unstable on WinArm.
With PRISM, we had to reduce the number of threads to let mormot2tests pass.
It is as known and documented.

No it was a 32Bit Debug executable. I try with 64 Bit


Rad Studio 12.3 Athens / 13.0 Ganymede

Offline

#7 Today 08:36:02

itSDS
Member
From: Germany
Registered: 2014-04-24
Posts: 593

Re: mormot throwing Exception ESChannel {Message:"recv: Handshake aborted"

Ok with 64 Bit Windows the Error is a little bit other displayed, but from the content the same

20251212 09343114  % EXC   ESChannel {Message:"recv: Handshake aborted"} [R3:IMSYS ThumbnailCache BinaryD] at 01091990 mormot.net.sock.windows.inc TSChannelNetTls.FreeAndCheckSocket (2057)  {8 3.47 3.68 1 19.4GB/63.9GB 23f00f01}

Rad Studio 12.3 Athens / 13.0 Ganymede

Offline

#8 Today 08:37:12

itSDS
Member
From: Germany
Registered: 2014-04-24
Posts: 593

Re: mormot throwing Exception ESChannel {Message:"recv: Handshake aborted"

Just to say, the Server is running and full responsive, im only wondering if this error is an error or something like a warning ?!


Rad Studio 12.3 Athens / 13.0 Ganymede

Offline

#9 Today 08:43:23

itSDS
Member
From: Germany
Registered: 2014-04-24
Posts: 593

Re: mormot throwing Exception ESChannel {Message:"recv: Handshake aborted"

SRY i have to test again, i have to define FORCE_OPENSSL in my dproj


Rad Studio 12.3 Athens / 13.0 Ganymede

Offline

#10 Today 08:59:14

itSDS
Member
From: Germany
Registered: 2014-04-24
Posts: 593

Re: mormot throwing Exception ESChannel {Message:"recv: Handshake aborted"

Ok back again, i testet now Win64 Server with OPENSSL and libcrypt 3.1
There i get this Error:

20251212 09523554  " EXC   EOpenSslNetTls {LastError:1,OpenSsl:"30100030",Message:"TOpenSslNetTls.AfterAccept accept: OpenSSL 30100030 error 1 [SSL_ERROR_SSL (error:0A000126:SSL routines::unexpected eof while reading)]"} [R0:IMSYS ThumbnailCache BinaryD] at 0112fd97 mormot.lib.openssl11.pas EOpenSsl.CheckFailed (2879)  {8 3.51 3.70 1 20GB/63.9GB 23f00f01}

I testet both client (Win64) with OpenSSL and without OpenSSl, Error is only on Server, and Client works as expected.


Rad Studio 12.3 Athens / 13.0 Ganymede

Offline

#11 Today 09:23:16

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 15,325
Website

Re: mormot throwing Exception ESChannel {Message:"recv: Handshake aborted"

So it sounds like if a non compliant client was not able to make proper TLS.

Offline

Board footer

Powered by FluxBB