Skip to content

Conversation

corverroos
Copy link
Owner

@corverroos corverroos commented Mar 3, 2023

Description

Fixes serviceloop logic to retry attempting to accept connections only on error.

Closes: tendermint#10009

@@ -193,11 +199,6 @@ func (sl *SignerListenerEndpoint) serviceLoop() {
return
}
}

select {
case sl.connectRequestCh <- struct{}{}:
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this always followed default case since a single goroutine cannot read-and-write to the same unbuffered channel. So this select had no affect.

github-merge-queue bot pushed a commit to cometbft/cometbft that referenced this pull request Jan 30, 2024
Before the change, we'd error after just 1 attempt of accepting a
connection.

Co-authored by: @corverroos

Closes #452

Port of corverroos/tendermint#1

---

#### PR checklist

- [x] Tests written/updated
- [x] Changelog entry added in `.changelog` (we use
[unclog](https://github.com/informalsystems/unclog) to manage our
changelog)
- [x] Updated relevant documentation (`docs/` or `spec/`) and code
comments
mergify bot pushed a commit to cometbft/cometbft that referenced this pull request Jan 30, 2024
Before the change, we'd error after just 1 attempt of accepting a
connection.

Co-authored by: @corverroos

Closes #452

Port of corverroos/tendermint#1

---

#### PR checklist

- [x] Tests written/updated
- [x] Changelog entry added in `.changelog` (we use
[unclog](https://github.com/informalsystems/unclog) to manage our
changelog)
- [x] Updated relevant documentation (`docs/` or `spec/`) and code
comments

(cherry picked from commit a8991d6)
mergify bot pushed a commit to cometbft/cometbft that referenced this pull request Jan 30, 2024
Before the change, we'd error after just 1 attempt of accepting a
connection.

Co-authored by: @corverroos

Closes #452

Port of corverroos/tendermint#1

---

#### PR checklist

- [x] Tests written/updated
- [x] Changelog entry added in `.changelog` (we use
[unclog](https://github.com/informalsystems/unclog) to manage our
changelog)
- [x] Updated relevant documentation (`docs/` or `spec/`) and code
comments

(cherry picked from commit a8991d6)

# Conflicts:
#	.changelog/v0.38.3/bug-fixes/2047-privval-retry-accepting-conn.md
mergify bot pushed a commit to cometbft/cometbft that referenced this pull request Aug 30, 2024
Before the change, we'd error after just 1 attempt of accepting a
connection.

Co-authored by: @corverroos

Closes #452

Port of corverroos/tendermint#1

---

#### PR checklist

- [x] Tests written/updated
- [x] Changelog entry added in `.changelog` (we use
[unclog](https://github.com/informalsystems/unclog) to manage our
changelog)
- [x] Updated relevant documentation (`docs/` or `spec/`) and code
comments

(cherry picked from commit a8991d6)

# Conflicts:
#	.changelog/v0.37.5/bug-fixes/2047-privval-retry-accepting-conn.md
mergify bot added a commit to cometbft/cometbft that referenced this pull request Aug 30, 2024
…#3899)

Before the change, we'd error after just 1 attempt of accepting a
connection.

Co-authored by: @corverroos

Closes #452

Port of corverroos/tendermint#1

---

#### PR checklist

- [x] Tests written/updated
- [x] Changelog entry added in `.changelog` (we use
[unclog](https://github.com/informalsystems/unclog) to manage our
changelog)
- [x] Updated relevant documentation (`docs/` or `spec/`) and code
comments

<hr>This is an automatic backport of pull request #2047 done by
[Mergify](https://mergify.com).

---------

Co-authored-by: Anton Kaliaev <anton.kalyaev@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unclear private validator accept connection logic
1 participant