mirror of
https://github.com/golang/go
synced 2024-11-18 12:14:42 -07:00
f86b507a7e
Currently, in http mode the server blocks until the corpus has been initialized. This can cause considerable delay if the user workspace is significantly large and the files are not present in the buffer cache. This CL spawns off the initialization in a separate goroutine if httpMode is set and turns on a flag when it's done. The http handler checks the flag and returns an error response if it has not been set. The check is only performed for the path prefixes handled by the handlerServer struct. Other paths do not call the GetPageInfo() function and hence can return immediately. This preserves maximum responsiveness of the server. Also adds an additional print statement in verbose mode Fixes golang/go#13278 Change-Id: I0505acc1c190423d09fb199b11ca86e0400e84d4 Reviewed-on: https://go-review.googlesource.com/88695 Reviewed-by: Andrew Bonventre <andybons@golang.org> |
||
---|---|---|
.. | ||
benchcmp | ||
bundle | ||
callgraph | ||
compilebench | ||
cover | ||
digraph | ||
eg | ||
fiximports | ||
getgo | ||
go-contrib-init | ||
godex | ||
godoc | ||
goimports | ||
gomvpkg | ||
gorename | ||
gotype | ||
goyacc | ||
guru | ||
heapview | ||
html2article | ||
present | ||
ssadump | ||
stress | ||
stringer | ||
tip | ||
toolstash |