Shivaram Lingamneni
23c7218bf1
first pass at renaming Oragono to Ergo
пре 3 година
Shivaram Lingamneni
5b33cd436f
remove unnecessary indirection in semaphore
пре 3 година
Shivaram Lingamneni
c78253fd93
more memory-efficient implementation of line reading
пре 3 година
Shivaram Lingamneni
28a0ec86b5
simplify Socket.Read
пре 4 година
Shivaram Lingamneni
a4f9e08a85
fix #1151
пре 4 година
Shivaram Lingamneni
c92192ef48
review fixes; add submatch support to glob
пре 4 година
Shivaram Lingamneni
3d3aec6979
fix missing err check, thanks @eklitzke
пре 4 година
Shivaram Lingamneni
3dc5c8de78
more work on websocket support
пре 4 година
Shivaram Lingamneni
101dc6b0d9
increase TLS handshake timeout
пре 4 година
Shivaram Lingamneni
0af0a0b445
fix a race condition
Setting `closed` on the socket (which can mean either "the socket is broken"
or "we should close the socket at the next opportunity") was racing against
the final write. Even if socket.closed is true, we should attempt to send
buffered message data to the socket, before we send the `finalData` and
actually call `Close`.
пре 5 година
Shivaram Lingamneni
97e71dfef7
extract Semaphore to utils package
пре 5 година
Shivaram Lingamneni
85493ef031
upgrade message-tags to non-draft version
пре 5 година
Shivaram Lingamneni
c8cf0befc6
fixes to irc/socket.go
* fix a race condition: a call to `Write` does not spawn a writer goroutine
if the trylock is held, so `BlockingWrite` must check for fresh data after
releasing the trylock
* streamline some close/finalize logic
пре 5 година
Shivaram Lingamneni
a0bf548fc5
draft/resume-0.2 implementation, message history support
пре 5 година
Shivaram Lingamneni
3150f4e23b
reduce copying of output lines
пре 6 година
Shivaram Lingamneni
ebfef1e848
add Semaphore and ServerSemaphores
пре 6 година
Shivaram Lingamneni
f54561171e
try to reduce redundant goroutines
пре 6 година
Shivaram Lingamneni
4778e7bcc7
fixes
* Placate `go vet`
* Reorder the `send` loop, clarify things a little
пре 6 година
Shivaram Lingamneni
b2f798cf03
eliminate dedicated RunSocketWriter goroutine
пре 6 година
Shivaram Lingamneni
d1f5c59eef
fix #190
пре 6 година
Shivaram Lingamneni
8fd1446627
tweak: clean up Socket.Close()
пре 6 година
Shivaram Lingamneni
0a432c9d99
do an actual nonblocking send instead of the len() trick
пре 6 година
Shivaram Lingamneni
fa5d4be718
refactor irc.Socket
пре 6 година
Daniel Oaks
2419f69879
Move all errors into errors.go
пре 6 година
Euan Kemp
2e8a98a925
irc: fix timer memleak
This is a gotcha called out in the `time.After` docs. `time.After` will
leak the underlying channel if nothing ever receives on it.
пре 7 година
Daniel Oaks
4254672133
socket: Fix bad mutex unlock
пре 7 година
Daniel Oaks
c911ff2bcd
Squash a bunch of possible races
пре 7 година
Daniel Oaks
f7a4f5d956
socket: Move to a timing-out send method that reduces goroutines and ensures QUIT/ERROR are sent
пре 7 година
Daniel Oaks
067f982da4
socket: Remove old comment
пре 7 година
Daniel Oaks
4a66771c39
socket: Attempt to close sockets better
пре 7 година
Daniel Oaks
86957d4392
socket: Fix quitting
пре 7 година
Daniel Oaks
121269661b
socket: Make closing work a little better
пре 7 година
Daniel Oaks
317a804644
Fix dates at top of source files
пре 7 година
Daniel Oaks
91fab3ba55
socket: Better deal with chanfloods
пре 7 година
Daniel Oaks
f5536d7945
socket: Add a simple println when SendQ exceeded, config comment update
пре 7 година
Daniel Oaks
c3be2d0d46
socket: Fixup sending code so we can support more connections
пре 7 година
Daniel Oaks
f29a5f0e70
socket: Very initial SendQ limit
пре 7 година
Daniel Oaks
de4db1c6ef
socket: Start overhaul of sockets and writing
пре 7 година
Daniel Oaks
149550b453
socket: Timeout TLS handshakes
пре 7 година
Daniel Oaks
b5e7d8968f
accounts: Add SASL EXTERNAL handler
пре 7 година
Daniel Oaks
49034cb20e
certfp: Add certfp retrieval from client
пре 7 година
Daniel Oaks
2f08401a0f
Attempt to add mostly-correct license info at the top of each file... track this stuff a bit better
пре 8 година
Daniel Oaks
9860094020
socket: Use updated socket code
пре 8 година
Jeremy Latt
4ce4ba31c5
keep track of whether sockets are closed
пре 10 година
Jeremy Latt
6c10add399
improve performance by using less goroutines
- get rid of command channel in Client
- get rid of loginTimer; use other timers instead
- move debugging code to debug.go
пре 10 година
Jeremy Latt
142bf3d3bb
don't async buffer flushing
пре 10 година
Jeremy Latt
b0bb0faadc
remove unnecessary String()s; rename parse functions
пре 10 година
Jeremy Latt
3b12dec207
cleanup
пре 10 година
Jeremy Latt
2dc69c7e3d
use a Scanner instead of ReadString
пре 10 година
Jeremy Latt
5f268e4847
async all write buffer flushes
пре 10 година