influxdb/services/httpd
Jeff Wendling 07e5465cb8 httpd: fix flaky test in timeout handler
there were two problems with this code:

1. the send on pending did not imply that the handler was running
2. there was a race starting the handler with timing out

1 is fixed by sending to a begin channel inside the handler. it is
then guaranteed that the timeout handler code has been entered.

2 is fixed by attempting to acquire the semaphore channel once before
checking the timeout channel. in this way, if there is capacity, which
in this test there is known to be, it is guaranteed to be taken. if
we check with the timer at the same time and the timer has already
fired, there is a pseudorandom chance the timer will be taken even
if there is capacity.
2018-07-05 12:09:09 -06:00
..
config.go Add optional pprof http endpoint immediately on startup. 2018-05-23 14:32:15 -06:00
config_test.go Cleanup services package 2018-01-21 10:52:37 -08:00
gzip.go
handler.go httpd: fix flaky test in timeout handler 2018-07-05 12:09:09 -06:00
handler_test.go httpd: fix flaky test in timeout handler 2018-07-05 12:09:09 -06:00
io.go Add config test; add negative value test 2017-06-06 08:42:45 +08:00
io_test.go
listen.go
listen_test.go
pprof.go Adds mutex profile 2017-08-04 14:36:39 +01:00
requests.go cleanup: remove poor usage of ',ok' with maps 2017-08-30 09:49:31 -04:00
response_logger.go influxdata/influxdb/influxql -> influxdata/influxql 2017-10-30 14:40:26 -07:00
response_writer.go Properly track the response bytes written for queries in all format types 2018-04-09 12:42:58 -05:00
response_writer_test.go Properly track the response bytes written for queries in all format types 2018-04-09 12:42:58 -05:00
service.go Make testing of handler easier 2018-06-12 15:54:18 +01:00