info request - endlessh

Issues related to applications and software problems and general support
Post Reply
lightman47
Posts: 1522
Joined: 2014/05/21 20:16:00
Location: Central New York, USA

info request - endlessh

Post by lightman47 » 2021/08/08 23:09:20

Anybody good with endlessh? The on-line docs are sparse on actual info and I am curious about the meaning of the "fd=" value in the logs. I figured 'n=' was the number of current connections.

The log entries in /var/log/messages look like:

Code: Select all

$ sudo grep endlessh /var/log/messages
Aug  8 18:41:02 wserver2 endlessh[169280]: 2021-08-08T22:41:02.199Z Port 2222
Aug  8 18:41:02 wserver2 endlessh[169280]: 2021-08-08T22:41:02.199Z Delay 10000
Aug  8 18:41:02 wserver2 endlessh[169280]: 2021-08-08T22:41:02.199Z MaxLineLength 32
Aug  8 18:41:02 wserver2 endlessh[169280]: 2021-08-08T22:41:02.199Z MaxClients 4096
Aug  8 18:41:02 wserver2 endlessh[169280]: 2021-08-08T22:41:02.199Z BindFamily IPv4 Mapped IPv6
Aug  8 18:43:32 wserver2 endlessh[169280]: 2021-08-08T22:43:32.540Z ACCEPT host=::ffff:58.32.11.150 port=39420 fd=4 n=1/4096
Aug  8 18:43:35 wserver2 endlessh[169280]: 2021-08-08T22:43:35.998Z ACCEPT host=::ffff:115.236.67.42 port=2065 fd=5 n=2/4096
Aug  8 18:43:52 wserver2 endlessh[169280]: 2021-08-08T22:43:52.554Z CLOSE host=::ffff:58.32.11.150 port=39420 fd=4 time=20.014 bytes=21
Aug  8 18:43:56 wserver2 endlessh[169280]: 2021-08-08T22:43:56.006Z CLOSE host=::ffff:115.236.67.42 port=2065 fd=5 time=20.008 bytes=12
Aug  8 18:44:47 wserver2 endlessh[169280]: 2021-08-08T22:44:47.447Z ACCEPT host=::ffff:154.74.130.69 port=60111 fd=4 n=1/4096
Aug  8 18:45:07 wserver2 endlessh[169280]: 2021-08-08T22:45:07.458Z CLOSE host=::ffff:154.74.130.69 port=60111 fd=4 time=20.011 bytes=11
Thank you.

User avatar
avij
Retired Moderator
Posts: 3046
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: info request - endlessh

Post by avij » 2021/08/09 04:32:25

https://en.wikipedia.org/wiki/File_descriptor

In this case it's essentially a connection identifier. Note that it does need to be unique. As shown in your output, fd 4 got reused for a new connection after the previous fd 4 was closed.

Post Reply