Hello,

I have a brand new 7.7/amd64 instance that exposes ActivityPub web
services via relayd(8) and httpd(8).

>From time to time, but faily regularly, the log file contains:
  relayd[xxxxx]: relay_connect: no connection in flight

Reading relay.c, I didn't understand what this message means.
After reading papers/relayd-asiabsdcon2013.pdf, I thought the message
may be the sign of not having enough file descriptors. So I added an
entry for relayd in login.conf and it seem to be applied properly:

# grep -A 2 relayd /etc/login.conf
relayd:\
  :openfiles=1024:\
  :tc=daemon:

# userinfo _relayd
login   _relayd
passwd  *
uid     89
groups  _relayd
change  NEVER
class   relayd
gecos   Relay Daemon
dir     /var/empty
shell   /sbin/nologin
expire  NEVER

# doas -u _relayd ksh -c "ulimit -a"
time(cpu-seconds)    unlimited
file(blocks)         unlimited
coredump(blocks)     unlimited
data(kbytes)         4194304
stack(kbytes)        8192
lockedmem(kbytes)    87381
memory(kbytes)       3997204
nofiles(descriptors) 1024
processes            1310

I am also monitoring openfiles using fstat and relayd doesn't seem to
use more than 146. The total openfiles seem to be 665. Polling is done
every 10 sec.

Does this "no connection in flight" only apply to openfiles issues?
What would be other things to check in order to solve this issue?

Thank you,
Joel C.

Reply via email to