clipcat icon indicating copy to clipboard operation
clipcat copied to clipboard

"Maximum number of clients reached"

Open CyberShadow opened this issue 3 years ago • 4 comments

To reproduce:

  1. Start clipcatd
  2. Run: while true ; do clipcatctl insert "$RANDOM" ; done

Outcome: after a while, clipcat stops inserting new entries.

If clipcatd is run with --no-daemon, it starts printing "Maximum number of clients reached" (with no newline) instead of e.g. INFO Clipboard ["21425"].

CyberShadow avatar May 26 '21 17:05 CyberShadow

Can confirm.

But that's weird. When i grep on my system (with all deps of clipcat in the cargo repo), I get no results. It's nowhere in the clipcat codebase. Probably some dependency? Then again, I should've found it.

Icelk avatar Dec 18 '21 15:12 Icelk

It seems to recover when I stop spamming it. Perhaps something with clipcat's gRPC implementation, which defaults to say 32 max concurrent clients?

Icelk avatar Dec 18 '21 15:12 Icelk

But that's weird. When i grep on my system (with all deps of clipcat in the cargo repo), I get no results. It's nowhere in the clipcat codebase. Probably some dependency? Then again, I should've found it.

It's coming from the X server. The error message might be in a C library that clipcat is linking against, such as xlib / libxcb.

CyberShadow avatar Dec 18 '21 16:12 CyberShadow

Why would clipcatd initiate multiple connections to X? Form my experience (not much) clipcatd creates a connection at start, and keeps it.

Icelk avatar Dec 18 '21 17:12 Icelk

Please try to use a newer version of clipcat. https://github.com/xrelkd/clipcat/releases/latest The problem might be solved by the new implementation.

xrelkd avatar Dec 01 '23 13:12 xrelkd