• Joined on 2022年08月30日
bitfehler pushed to main at ddevault/status.sr.ht 2024年12月04日 13:51:31 +01:00
b47370a656 git.sr.ht DDoS
bitfehler commented on issue redict/redict#58 2024年09月25日 13:45:04 +02:00
Consider making TLS support mandatory

We may also consider suitably annoying warnings if, for instance, listening on a public IP address without TLS enabled.

While I wholeheartedly agree with the concept, I would like to point...

bitfehler commented on pull request emersion/soju#9 2024年09月01日 13:20:51 +02:00
user: fix goroutine leak on upstream error

Well, after some deliberation I figured it's probably best to not try to be too clever about it. How does this version look to you?

bitfehler pushed to upstream-err-leak at bitfehler/soju 2024年09月01日 13:18:12 +02:00
d166e697d3 user: fix goroutine leak on upstream error
bitfehler commented on pull request emersion/soju#9 2024年08月31日 14:00:01 +02:00
user: fix goroutine leak on upstream error

For full disclosure: the go analysis tool does indeed detect this as lostcancel, even though the description there explicitly...

bitfehler commented on pull request emersion/soju#9 2024年08月31日 13:55:38 +02:00
user: fix goroutine leak on upstream error

It was only used by means of defer cancel(). This is already happening for the parent process. And as per the docs:

When a Context is canceled,...

bitfehler commented on pull request emersion/soju#9 2024年08月30日 23:19:03 +02:00
user: fix goroutine leak on upstream error

Oh boy, the entire time I read withTimeout as withCancel (mostly because it also returns a cancel function pointer) 🤯

So in my attempt to switch the two lines, I actually subjected...

bitfehler pushed to upstream-err-leak at bitfehler/soju 2024年08月30日 23:14:24 +02:00
5945cba4ac user: fix goroutine leak on upstream error
bitfehler created pull request emersion/soju#9 2024年08月30日 12:18:49 +02:00
WIP: user: fix goroutine leak on upstream error
bitfehler pushed to upstream-err-leak at bitfehler/soju 2024年08月30日 12:03:37 +02:00
644657f2cf user: fix goroutine leak on upstream error
bitfehler created branch upstream-err-leak in bitfehler/soju 2024年08月30日 12:03:37 +02:00
bitfehler pushed tag v0.8.2 to bitfehler/soju 2024年08月30日 12:03:02 +02:00
bitfehler pushed tag v0.6.2 to bitfehler/soju 2024年08月30日 12:03:01 +02:00
bitfehler pushed tag v0.6.1 to bitfehler/soju 2024年08月30日 12:03:00 +02:00
bitfehler pushed tag v0.2.2 to bitfehler/soju 2024年08月30日 12:02:57 +02:00
bitfehler pushed to master at bitfehler/soju 2024年08月30日 12:02:34 +02:00
a25b692567 server: close admin socket on CAP/NICK/USER/PASS
7837e8cf59 conn: rework concurrency logic
4f88dbe09e deps: replace nhooyr.io/websocket with github.com/coder/websocket
8c3ef5bbf0 upstream: prevent notifications that don't cause messages
b0d2e0a1b4 Revert "conn: fix goroutine leak"
Compare 6 commits »
bitfehler commented on pull request emersion/soju#4 2024年08月19日 13:23:31 +02:00
conn: rework concurrency logic

Got it, thanks for taking the time to help me understand it! It feels a bit like cheating to my inner C programmer, but the reasoning is sound! 😉

Looking forward to testing this!

bitfehler commented on pull request emersion/soju#4 2024年08月19日 11:49:47 +02:00
conn: rework concurrency logic

Ah, right, sorry. I kind of saw that, but didn't quite grok the approach 🙂 How does that fare in terms of cleaning up resources? Won't a channel with pending messages then linger forever on the...

bitfehler commented on pull request emersion/soju#4 2024年08月19日 11:25:39 +02:00
conn: rework concurrency logic

@emersion Sorry for only writing this now, I was out on vacation. But: I don't think this is sound? Seems susceptible to TOCTTOU: the bool may be atomic, but since different goroutines can run in different threads, it is possible that the value is true when checked in goroutine X, then another goroutine Y closes the channel, then X continues, and if I understand this issue correctly, a select on a closed channel will panic? I am not a go expert, so I don't know if there any guarantees that the runtime provides that prevent this, but from a pure concurrency theory PoV, I think this is an issue? Or maybe the select behavior changed?

bitfehler pushed to master at bitfehler/soju 2024年07月30日 15:26:11 +02:00
bcd85ab6d5 upstream: fix accidental variable shadowing
996624b32d conn: avoid deadlock on shutdown
Compare 2 commits »