$ ./serve2pipe -count 1000 &
[1] 25909
$ curl -s localhost:8080|head -n 10
2018/03/21 17:50:54 Handling /
1
2
3
4
5
6
7
8
9
10
$ ./serve2pipe -count 1000 -catch &
[1] 25919
[2018/03/21 17:51:46 Will catch sigpipe
$ curl -s localhost:8080|head -n 10
2018/03/21 17:51:56 Handling /
1
2
3
4
5
6
7
8
9
10
2018/03/21 17:51:57 Received signal broken pipe