22 Commits

Author SHA1 Message Date
Ian Gulliver
8316739941 Move stdin/out handling entirely into stdinout.c 2016-03-09 18:07:09 -08:00
Ian Gulliver
9f5a6223bf Fix shutdown for lack of input/output. 2016-03-08 22:30:55 -08:00
Ian Gulliver
e885723c59 Use signalfd to handle SIGINT and SIGTERM shutdown. 2016-03-08 22:26:04 -08:00
Ian Gulliver
b915f38dca Switch out custom wakeup system for timerfd. 2016-03-08 21:53:57 -08:00
Ian Gulliver
d39cd62991 Cleanup how we cast and close peers. 2016-03-08 20:41:00 -08:00
Ian Gulliver
b434b67dd8 Switch to LOG macro 2016-03-07 17:02:24 -08:00
Ian Gulliver
ff4f4da608 deheader cleanup 2016-03-07 15:19:00 -08:00
Ian Gulliver
db271db748 Switch from pipe to socketpair for consistency. 2016-03-07 14:52:10 -08:00
Ian Gulliver
6480a960fa Switch to standard logging framework 2016-03-05 22:54:26 -08:00
Ian Gulliver
746379aee5 Treat SIGTERM like SIGINT 2016-03-04 13:02:43 -08:00
Ian Gulliver
e62b84e4e8 Add a peer_count_out_in 2016-03-02 22:10:55 -08:00
Ian Gulliver
a9cfb590e1 Fix some messy shutdown. 2016-02-26 14:31:35 -08:00
Ian Gulliver
8d9a11076b Add an always trigger list, so we can handle non-socket IO properly. 2016-02-26 11:12:45 -08:00
Ian Gulliver
19a9d498bd Enable -Weverything, fix a ton of bugs. 2016-02-25 23:37:37 -08:00
Ian Gulliver
3155381678 Shut down if we run out of inputs or outputs. 2016-02-25 16:33:58 -08:00
Ian Gulliver
5e604f0596 In/out reference counting. 2016-02-25 16:17:25 -08:00
Ian Gulliver
1635534243 Switch from sketchy dup() juggling to callbacks to retry outgoing connection. 2016-02-24 20:15:09 -08:00
Ian Gulliver
63f5313b96 Set EPOLL_CLOEXEC 2016-02-23 22:24:03 -08:00
Ian Gulliver
d2e521e90c json input support, some shutdown fixes. json needs cleanup. 2016-02-23 13:49:23 -08:00
Ian Gulliver
77ee1422c1 Sprinkle CLOEXEC around. 2016-02-23 12:00:17 -08:00
Ian Gulliver
bc9219b4a8 Split server out. 2016-02-22 21:53:25 -08:00
Ian Gulliver
b5ab0cb0a6 Split out peer 2016-02-22 16:49:43 -08:00