Don't deadlock while sending and receiving large indexes

This commit is contained in:
Jakob Borg
2014-05-20 18:41:01 +02:00
parent 1aef03288a
commit 95f5e5fa9a
2 changed files with 19 additions and 9 deletions

View File

@@ -215,6 +215,7 @@ func main() {
if profiler := os.Getenv("STPROFILER"); len(profiler) > 0 {
go func() {
l.Debugln("Starting profiler on", profiler)
runtime.SetBlockProfileRate(1)
err := http.ListenAndServe(profiler, nil)
if err != nil {
l.Fatalln(err)