3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-14 07:59:31 +01:00
Commit Graph

324 Commits

Author SHA1 Message Date
Jeremy Latt
0bf968e19e move command parsing and hostname lookups into the socket routine 2014-02-23 17:04:24 -08:00
Jeremy Latt
ff5656fdb4 aggressively clean up client 2014-02-23 11:08:01 -08:00
Jeremy Latt
1283bd35c7 encapsulate client replies in method 2014-02-22 11:40:32 -08:00
Jeremy Latt
e1c4c8e8cc don't send prefix on server-originated string coded replies 2014-02-20 20:08:32 -08:00
Jeremy Latt
ad513da486 do hostname lookups in the client read thread 2014-02-20 13:03:33 -08:00
Jeremy Latt
97881b555d async hostname lookups 2014-02-20 11:51:45 -08:00
Jeremy Latt
c0dc733351 don't wait for writing to complete 2014-02-20 11:16:10 -08:00
Jeremy Latt
9960089226 format replies to strings instead of using a Reply struct 2014-02-19 22:20:34 -08:00
Jeremy Latt
25ebab37d3 replies shouldn't contain references to client 2014-02-19 19:30:49 -08:00
Jeremy Latt
9c385ededd synchronize on last writes to client sockets 2014-02-19 18:46:46 -08:00
Jeremy Latt
af6a8ee6f0 remove channel buffering 2014-02-19 18:22:57 -08:00
Jeremy Latt
6265b70622 get rid of goroutines on client socket 2014-02-19 18:13:35 -08:00
Jeremy Latt
95f267ea4f buffer all channels 2014-02-19 17:48:03 -08:00
Jeremy Latt
0cd6be8008 clean up nickname setting logic 2014-02-18 15:36:58 -08:00
Jeremy Latt
86d4cae141 swap refcounting friends for iteration 2014-02-18 15:28:20 -08:00
Jeremy Latt
9e471b5b5d solve quit/connection close race 2014-02-18 13:25:21 -08:00
Jeremy Latt
2bc1b952a0 do idle in the server goroutine instead of the timeout goroutine 2014-02-18 11:22:56 -08:00
Jeremy Latt
4f106e7d3e make server logging consistent with other logs 2014-02-18 10:22:40 -08:00
Jeremy Latt
58517ad4e8 fix closed channel on socket close 2014-02-18 10:13:57 -08:00
Jeremy Latt
9c1ab4f610 fix socket close race 2014-02-17 23:58:02 -08:00
Jeremy Latt
baf83e73d2 support USER from both RFCs 1459 and 2812 2014-02-17 22:10:48 -08:00
Jeremy Latt
bb64d38684 implement who reply like ngircd 2014-02-17 21:30:14 -08:00
Jeremy Latt
528588acfc augment whois idle with signon time 2014-02-17 19:56:06 -08:00
Jeremy Latt
9a5f21e78c beef up whois 2014-02-17 19:08:57 -08:00
Jeremy Latt
bd3ca4ae47 fix race in idle timeout; fix some string trimming; fix some replies 2014-02-17 18:10:52 -08:00
Jeremy Latt
1a7f56a903 clean up general command and name handling 2014-02-17 17:58:22 -08:00
Jeremy Latt
a55b912941 enforce nicks via lowercase strings 2014-02-17 15:25:32 -08:00
Jeremy Latt
6d8b381927 convert client bools to a flags map 2014-02-17 13:22:35 -08:00
Jeremy Latt
a9d7f64693 kick command 2014-02-16 23:29:11 -08:00
Jeremy Latt
4e56ea1bdc get rid of unnecessary concurrency for channels and clients 2014-02-16 22:20:42 -08:00
Jeremy Latt
54ca916c85 stop login timer on destroy 2014-02-16 18:16:13 -08:00
Jeremy Latt
e411dafda7 get rid of mutexes in favor of channel-base syncing 2014-02-16 17:23:47 -08:00
Jeremy Latt
33b1e6c582 simplify Replier 2014-02-14 19:35:25 -08:00
Jeremy Latt
3a9027e3dc don't double-close socket 2014-02-14 19:05:30 -08:00
Jeremy Latt
4d9742d033 organize server command into phases 2014-02-14 18:28:36 -08:00
Jeremy Latt
72a90d5544 don't close channels unless necessary 2014-02-14 08:57:17 -08:00
Jeremy Latt
6ea3c8f4d1 fix race conditions 2014-02-13 23:16:07 -08:00
Jeremy Latt
7051627fb2 avoid race double-close on replies 2014-02-13 21:10:31 -08:00
Jeremy Latt
7cef494d28 don't close replies twice 2014-02-13 20:56:15 -08:00
Jeremy Latt
be01a412d9 only quit registered clients 2014-02-13 20:52:42 -08:00
Jeremy Latt
dcc40bbac1 more logging 2014-02-13 20:42:06 -08:00
Jeremy Latt
541a40b056 touch should respect destroyed 2014-02-13 20:38:22 -08:00
Jeremy Latt
e0e61907ce don't trigger connection closed on read and write goroutines 2014-02-13 20:30:51 -08:00
Jeremy Latt
03b6caa597 don't close replies too many times 2014-02-13 20:27:20 -08:00
Jeremy Latt
d35fe6088c attempt to fix hang condition in quit sequence 2014-02-13 20:23:22 -08:00
Jeremy Latt
6301d2b47f more logging 2014-02-13 19:44:42 -08:00
Jeremy Latt
8902ee040d more logging; check client for each reply 2014-02-13 19:41:51 -08:00
Jeremy Latt
11537ad975 abstract net operations as Socket 2014-02-13 19:37:37 -08:00
Jeremy Latt
b8bbc7eeb5 add more logging 2014-02-13 18:59:45 -08:00
Jeremy Latt
b6a7d98b64 adjust authorization and add more hang logging 2014-02-13 18:39:33 -08:00
Jeremy Latt
ce931b23a2 simplify net logging 2014-02-13 18:17:20 -08:00
Jeremy Latt
965d8efdf8 add a login timout to close dropped connections 2014-02-13 13:19:26 -08:00
Jeremy Latt
c327042c94 destroy clients on socket close with quit 2014-02-13 09:47:10 -08:00
Jeremy Latt
7a2c9db503 don't allow send on closed channels 2014-02-13 09:35:59 -08:00
Jeremy Latt
ca25828804 sanify debug net logging 2014-02-12 21:18:02 -08:00
Jeremy Latt
415ccc7607 maybe fix networking hangs 2014-02-12 21:07:40 -08:00
Jeremy Latt
01fa48c73e clear client channel list on destroy 2014-02-12 18:33:30 -08:00
Jeremy Latt
52dd2521c2 remove prefix from local replies; fix topic message 2014-02-12 18:14:19 -08:00
Jeremy Latt
08d9d5ab79 away modes 2014-02-11 15:44:58 -08:00
Jeremy Latt
cdae59ecf5 stub motd 2014-02-11 15:33:02 -08:00
Jeremy Latt
887f12cb31 get rid of channel abstraction for buffered socket io 2014-02-11 15:00:19 -08:00
Jeremy Latt
aac0efebee send initial nick message to source client 2014-02-11 14:32:17 -08:00
Jeremy Latt
a34443f155 fix reverse dns 2014-02-10 19:39:53 -08:00
Jeremy Latt
e625f62baa cancel timers when a client quits 2014-02-09 19:06:30 -08:00
Jeremy Latt
133b91b9f0 idle/quit timeout 2014-02-09 12:13:09 -08:00
Jeremy Latt
8a90634c0a irc operators 2014-02-09 10:07:40 -08:00
Jeremy Latt
6367e4b654 fix ModeString 2014-02-09 08:53:06 -08:00
Jeremy Latt
1787ac8ebf use Reply() to wrap channel 2014-02-09 08:48:11 -08:00
Jeremy Latt
55d3d6e946 don't overwrite base command 2014-02-08 23:51:51 -08:00
Jeremy Latt
a3b7441939 type cleanup 2014-02-08 23:15:05 -08:00
Jeremy Latt
c4f457705a minimal whois implementation 2014-02-08 17:43:59 -08:00
Jeremy Latt
06648393a1 implement join/quit and channel messages properly 2014-02-08 17:10:04 -08:00
Jeremy Latt
3f9495cda0 add data structures for decoding mode messages 2014-02-08 14:20:23 -08:00
Jeremy Latt
b9cb539219 organize like a proper go package 2014-02-08 13:19:35 -08:00