Find a file
Conrad Hoffmann 07502541e4 conn: fix goroutine leak
As is, soju leaks goroutines on client disconnects, because the closure
started as goroutine in newConn never finishes. It gets stuck in the
for loop annotated as "draining the outgoing channel", because the
outgoing channel is in fact never closed.

This commit fixes the issue by calling conn.Close rather than
conn.conn.Close, which closes not only the underlying net.Conn (in
c.conn), but also the channel.
2024-07-08 23:04:52 +02:00
auth Migrate to Codeberg 2024-07-04 21:28:11 +02:00
cmd Migrate to Codeberg 2024-07-04 21:28:11 +02:00
config config: validate http-origin patterns 2024-02-13 18:54:35 +01:00
contrib contrib/clients: remove note about chat.sr.ht 2024-07-04 21:34:23 +02:00
database Migrate to Codeberg 2024-07-04 21:28:11 +02:00
doc Migrate to Codeberg 2024-07-04 21:28:11 +02:00
fileupload Migrate to Codeberg 2024-07-04 21:28:11 +02:00
identd identd: use UNKNOWN for OS name 2023-02-23 13:27:25 +01:00
msgstore Migrate to Codeberg 2024-07-04 21:28:11 +02:00
xirc xirc: fix chunking in GenerateSASL 2024-06-30 23:42:31 +02:00
.build.yml Migrate to Codeberg 2024-07-04 21:28:11 +02:00
.editorconfig Add .editorconfig 2020-11-30 11:39:41 +01:00
.gitignore gitignore: add doc/sojuctl.1 2023-04-05 10:56:36 +02:00
certfp.go Split CertFP logic into separate file 2021-10-08 09:47:25 +02:00
config.in Listen on the default unix admin endpoint in the default configuration 2023-02-06 15:15:09 +01:00
conn.go conn: fix goroutine leak 2024-07-08 23:04:52 +02:00
downstream.go Stop dereferencing *conn 2024-07-08 20:35:20 +02:00
go.mod Migrate to Codeberg 2024-07-04 21:28:11 +02:00
go.sum Upgrade dependencies 2024-05-22 17:04:46 +02:00
irc.go Migrate to Codeberg 2024-07-04 21:28:11 +02:00
irc_test.go Ignore highlights in URLs 2024-03-01 11:33:01 +01:00
LICENSE Switch license to AGPLv3 2020-02-07 17:41:51 +01:00
Makefile Migrate to Codeberg 2024-07-04 21:28:11 +02:00
rate.go Add exponential backoff when re-connecting to upstream 2021-12-02 12:14:35 +01:00
README.md Migrate to Codeberg 2024-07-04 21:28:11 +02:00
server.go Migrate to Codeberg 2024-07-04 21:28:11 +02:00
server_test.go Migrate to Codeberg 2024-07-04 21:28:11 +02:00
service.go Migrate to Codeberg 2024-07-04 21:28:11 +02:00
service_test.go Hand-made word splitter for BouncerServ 2021-06-24 19:33:46 +02:00
upstream.go Stop dereferencing *conn 2024-07-08 20:35:20 +02:00
user.go Migrate to Codeberg 2024-07-04 21:28:11 +02:00

soju

soju is a user-friendly IRC bouncer. soju connects to upstream IRC servers on behalf of the user to provide extra functionality. soju supports many features such as multiple users, numerous IRCv3 extensions, chat history playback and detached channels. It is well-suited for both small and large deployments.

Usage

Building and installing

Dependencies:

  • Go
  • BSD or GNU make
  • a C89 compiler (optional, for SQLite)
  • scdoc (optional, for man pages)

For end users, a Makefile is provided:

make
sudo make install

For development, you can use go run ./cmd/soju as usual.

To link with the system libsqlite3, set GOFLAGS="-tags=libsqlite3". To disable SQLite support, set GOFLAGS="-tags=nosqlite". To use an alternative SQLite library that does not require CGO, set GOFLAGS="-tags=moderncsqlite". To build with PAM authentication support, set GOFLAGS="-tags=pam".

Contributing

Send patches on Codeberg or on GitHub, report bugs on the issue tracker. Discuss in #soju on Libera Chat.

License

AGPLv3, see LICENSE.

Copyright (C) 2020 The soju Contributors