mirror of
https://github.com/lldap/lldap.git
synced 2026-04-25 08:15:52 +03:00
[GH-ISSUE #980] [BUG] Postgresql reports "could not receive data from client: Connection reset by peer" #355
Labels
No labels
backend
blocked
bug
cleanup
dependencies
docker
documentation
duplicate
enhancement
enhancement
frontend
github_actions
good first issue
help wanted
help wanted
integration
invalid
ldap
pull-request
question
rust
rust
tests
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/lldap-lldap#355
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @shizunge on GitHub (Sep 23, 2024).
Original GitHub issue: https://github.com/lldap/lldap/issues/980
Describe the bug
Firstly I did not notice any incorrect functions about lldap. This is just about cleanup my log.
I run lldap with postgresql.
My postgresql database generates the following log every hour.
It seems lldap running some periodic job, but it does not close the link to database gracefully.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
No log about Connection reset by peer from the postgresql.
Logs
Will upload the log later if there is a corresponding event in the log. I did not run lldap in verbose mode.
Additional context
NA
@nitnelave commented on GitHub (Sep 23, 2024):
Hmm, we're using a connection pool, not explicitly managing the lifetime of single connections. I'll ask around in our dependencies, but I'm not sure there's much that I can do about it.
@nitnelave commented on GitHub (Oct 30, 2024):
I think this should help, once it lands: https://github.com/launchbadge/sqlx/pull/3582
@shizunge commented on GitHub (Nov 11, 2024):
I don't see the problem with 0.6.0.
Close for now.
@shizunge commented on GitHub (Nov 12, 2024):
I still see the message, but much less often.
@shizunge commented on GitHub (Dec 24, 2024):
Reopen.
I still see the messages (hourly) with LLDAP version 0.6.1 and Postgresql 17.
@thielj commented on GitHub (Sep 4, 2025):
Probably related, as the pool currently defaults to a minimum of zero connections.
https://github.com/lldap/lldap/discussions/910
https://github.com/lldap/lldap/pull/1248#issuecomment-3250818457
@shizunge commented on GitHub (Sep 4, 2025):
I debugged it a little bit.
I think this is a network/firewall issue. The system does not keep the long live TCP connection.
For my setup everything is on a docker overlay network.
Setting endpoint to dnsrr seems resolved the problem. See https://forums.docker.com/t/4-minute-timeout-when-connecting-to-published-tcp-port-on-docker-swarm/136666