#1 2021-03-07 12:58:06

jaclas
Member
Registered: 2014-09-12
Posts: 215

Websocket server and 10053 WSAECONNABORTED

I have a server based on mORMot that has been running on a VPS at OVH for several years. I am now moving it to another provider, Contabo.

The server is using websockets to internal communicate with the control GUI which is on the same machine (it connects locally), the websocket server is running on port 9000.

At the moment my server is tested in Contabo and I see messages in the log that were never there in OVH:

EXC   ECrtSocket ("SockRecvLn after 19 chars [10053 WSAECONNABORTED An established connection was 
aborted by the software in your host machine]") [HttpSvr 9000/logservice PoolWork] 
at c07dc4 SynCrtSock.TCrtSocket.SockRecvLn (5599)  stack trace API 

OVH is running Windows Server 2012, Contabo is running Server 2016.

What could be the cause and what can I do about it?

ps. I use the latest version of mORMot from the repository and Delphi 10.3

Offline

#2 2021-03-07 20:33:32

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,655
Website

Re: Websocket server and 10053 WSAECONNABORTED

Seems weird.

Try to define nginx as reverse proxy (in a Linux/BSD) in front of the Windows server.
It is a good practice for security (especially to support WSS and Let's Encrypt certificates), and it may solve communication issues like timeouts or aborts.

Offline

#3 2021-03-08 07:51:20

jaclas
Member
Registered: 2014-09-12
Posts: 215

Re: Websocket server and 10053 WSAECONNABORTED

I have no way to run the reverse proxy on a separate server, I only have one Windows server.

Arnaud, do you think this error is due to someone "illegally" connecting to this websocket port from the internet?

Offline

#4 2021-03-08 09:15:27

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,655
Website

Re: Websocket server and 10053 WSAECONNABORTED

It may be the case.
Check the logs, especially the IP address.

Offline

Board footer

Powered by FluxBB