Don't deadlock while sending and receiving large indexes

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

No files matched your search

+1
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)