Shivaram Lingamneni
f54561171e
try to reduce redundant goroutines
hace 6 años
Shivaram Lingamneni
4778e7bcc7
fixes
* Placate `go vet`
* Reorder the `send` loop, clarify things a little
hace 6 años
Shivaram Lingamneni
b2f798cf03
eliminate dedicated RunSocketWriter goroutine
hace 6 años
Shivaram Lingamneni
d1f5c59eef
fix #190
hace 6 años
Shivaram Lingamneni
8fd1446627
tweak: clean up Socket.Close()
hace 6 años
Shivaram Lingamneni
0a432c9d99
do an actual nonblocking send instead of the len() trick
hace 6 años
Shivaram Lingamneni
fa5d4be718
refactor irc.Socket
hace 6 años
Daniel Oaks
2419f69879
Move all errors into errors.go
hace 6 años
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.
hace 7 años
Daniel Oaks
4254672133
socket: Fix bad mutex unlock
hace 7 años
Daniel Oaks
c911ff2bcd
Squash a bunch of possible races
hace 7 años
Daniel Oaks
f7a4f5d956
socket: Move to a timing-out send method that reduces goroutines and ensures QUIT/ERROR are sent
hace 7 años
Daniel Oaks
067f982da4
socket: Remove old comment
hace 7 años
Daniel Oaks
4a66771c39
socket: Attempt to close sockets better
hace 7 años
Daniel Oaks
86957d4392
socket: Fix quitting
hace 7 años
Daniel Oaks
121269661b
socket: Make closing work a little better
hace 7 años
Daniel Oaks
317a804644
Fix dates at top of source files
hace 7 años
Daniel Oaks
91fab3ba55
socket: Better deal with chanfloods
hace 7 años
Daniel Oaks
f5536d7945
socket: Add a simple println when SendQ exceeded, config comment update
hace 7 años
Daniel Oaks
c3be2d0d46
socket: Fixup sending code so we can support more connections
hace 7 años
Daniel Oaks
f29a5f0e70
socket: Very initial SendQ limit
hace 7 años
Daniel Oaks
de4db1c6ef
socket: Start overhaul of sockets and writing
hace 7 años
Daniel Oaks
149550b453
socket: Timeout TLS handshakes
hace 7 años
Daniel Oaks
b5e7d8968f
accounts: Add SASL EXTERNAL handler
hace 7 años
Daniel Oaks
49034cb20e
certfp: Add certfp retrieval from client
hace 7 años
Daniel Oaks
2f08401a0f
Attempt to add mostly-correct license info at the top of each file... track this stuff a bit better
hace 8 años
Daniel Oaks
9860094020
socket: Use updated socket code
hace 8 años
Jeremy Latt
4ce4ba31c5
keep track of whether sockets are closed
hace 10 años
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
hace 10 años
Jeremy Latt
142bf3d3bb
don't async buffer flushing
hace 10 años
Jeremy Latt
b0bb0faadc
remove unnecessary String()s; rename parse functions
hace 10 años
Jeremy Latt
3b12dec207
cleanup
hace 10 años
Jeremy Latt
2dc69c7e3d
use a Scanner instead of ReadString
hace 10 años
Jeremy Latt
5f268e4847
async all write buffer flushes
hace 10 años
Jeremy Latt
d696f2313e
stop leaking client goroutines; closes #34
hace 10 años
Jeremy Latt
e15f47c766
move to channel-based logging
hace 10 años
Jeremy Latt
77d053ccac
get rid of editableCommand
hace 10 años
Jeremy Latt
04f0b2c48d
trim trailing space from commands
hace 10 años
Jeremy Latt
6f00f89efa
relax unicode parsing rules
NFKC was previously used for all text. Now, we use NFKC for all args but
the last, which may be free text. This arg is normalized with NFC to
allow for formatting characters.
hace 10 años
Jeremy Latt
45bb0d05e7
normalize all unicode input from the client
hace 10 años
Jeremy Latt
be089e7f5f
do bcrypt in the client main routine
hace 10 años
Jeremy Latt
41e6baf9d4
get rid of a race; use pointers where possible
hace 10 años
Jeremy Latt
0856a9fa81
flag socket as closed when writes fail
hace 10 años
Jeremy Latt
0bf968e19e
move command parsing and hostname lookups into the socket routine
hace 10 años
Jeremy Latt
3b56b5bf42
expose various go internals as a DEBUG command
hace 10 años
Jeremy Latt
ad513da486
do hostname lookups in the client read thread
hace 10 años
Jeremy Latt
c0dc733351
don't wait for writing to complete
hace 10 años
Jeremy Latt
6265b70622
get rid of goroutines on client socket
hace 10 años
Jeremy Latt
f090c616b3
reduce writes
hace 10 años
Jeremy Latt
dcb4ac90e2
use a buffered channel for socket writing
hace 10 años