Commit Graph

29 Commits

Author SHA1 Message Date
Naitik Shah
9aca7f00c4 stop signals before we start the graceful stop process 2013-10-15 11:55:48 -07:00
Naitik Shah
aad68df4be stop signals once initial term has been processed. fixes #5 2013-10-15 10:50:08 -07:00
Naitik Shah
211c8342b3 use time.Now for timeInPast 2013-10-07 22:57:59 -07:00
Naitik Shah
60b34bd164 comments 2013-10-06 13:01:58 -07:00
Naitik Shah
f5295e5b81 use defer for wg.Done to ensure its called 2013-10-06 12:19:25 -07:00
Naitik Shah
ae3f6c71a7 remove old env variable on restart 2013-10-06 12:14:11 -07:00
Naitik Shah
c0e92551f5 wtf append nil? 2013-10-06 11:33:37 -07:00
Naitik Shah
f2bbd9297e dont need to be TCP specific 2013-10-06 11:25:24 -07:00
Naitik Shah
09bc4c424a dont throw away SetDeadline error 2013-10-06 11:07:31 -07:00
Naitik Shah
70bbce6ad2 dont use named return variables in a strange way 2013-10-06 11:05:27 -07:00
Naitik Shah
61aafa98f8 move inline interface out for readability 2013-10-06 11:00:22 -07:00
Naitik Shah
220ebb1f4f use defer in conn.Close 2013-10-06 10:54:16 -07:00
Naitik Shah
72ccd60490 fix bugs pointed out by go vet 2013-09-18 17:58:04 -07:00
Naitik Shah
f41bb0a2be handle race condition that may arise between accept and add 2013-09-10 12:42:11 -07:00
Naitik Shah
ebaf0674d2 spelling nit 2013-08-20 16:48:43 -07:00
Naitik Shah
57754541e7 dont drop the last connection. fixes TLS issues 2013-08-20 16:23:38 -07:00
Naitik Shah
6bda16a267 fix racy behavior with closing channels
replaces custom channel logic with simpler RWMutex and WaitGroup
2013-05-08 23:25:58 -07:00
Naitik Shah
8f7f9df910 drop connections that come in between a close and an accept race
this is bad, but worse is the current logic which can sometimes hit a
nil counter channel.
2013-04-03 18:11:40 -07:00
Naitik Shah
249c1519e3 needed for go 1.0.x 2013-03-27 19:36:19 -07:00
Naitik Shah
d710f745bd also close the counter channel to raise potential data races 2013-03-27 18:43:33 -07:00
Naitik Shah
40271cd1a7 fix data races around use of l.closed
fixes #1
2013-03-27 18:29:36 -07:00
Naitik Shah
8b2bf35743 remove some duplication 2013-03-25 14:39:26 -07:00
Naitik Shah
d0382a39e6 realListener => FileListener 2013-03-25 14:38:05 -07:00
Naitik Shah
ff78530d8b docs & readme 2013-03-25 13:53:07 -07:00
Naitik Shah
991a4f1f05 fix bug introduced with systemd compatibility 2013-03-25 13:33:16 -07:00
Naitik Shah
faf45f4e9e ensure nil return when not an error 2012-09-12 11:57:20 -07:00
Naitik Shah
5540a9b5d3 systemd socket activation compatibility 2012-09-02 21:21:19 -07:00
Naitik Shah
7aa612785a docs and api cleanup 2012-06-04 21:56:51 -07:00
Naitik Shah
a98138a3e6 clean repo 2012-06-04 22:21:10 +00:00