See the discussion below. A future commit will implement the closer change below, and rebase this one on top. <•jbenet> `n.Diagnostics.GetDiagnostic(time.Second * 20)` is not being respected. should it use a context instead? or is it a timeout because the timeout is sent to other nodes? <•jbenet> oh it's that the io doesnt respect the context so we're stuck waiting for responses. <•jbenet> this is that complex interface point between the world of contexts, and the world of io. ctxutil.Reader/Writer is made for this, but you have to make sure to defer close the stream. (see how dht_net uses it). i'd love to find a safer interface. not sure what it is, but we have to a) respect contexts, and b) allow using standard io.Reader/Writers. Maybe TRTTD <•jbenet> is have ctxutil.Reader/Writer take ReadCloser and WriteClosers and always close them. the user _must_ pass an ioutil. NopCloser to avoid ctxutil closing on you when you dont want it to. <•jbenet> this seems safer to me in the general case.
| 名称 |
最后提交
|
最后更新 |
|---|---|---|
| Godeps | 正在载入提交数据... | |
| bin | 正在载入提交数据... | |
| blocks | 正在载入提交数据... | |
| blockservice | 正在载入提交数据... | |
| cmd | 正在载入提交数据... | |
| commands | 正在载入提交数据... | |
| core | 正在载入提交数据... | |
| diagnostics | 正在载入提交数据... | |
| exchange | 正在载入提交数据... | |
| fuse | 正在载入提交数据... | |
| importer | 正在载入提交数据... | |
| jenkins | 正在载入提交数据... | |
| merkledag | 正在载入提交数据... | |
| namesys | 正在载入提交数据... | |
| p2p | 正在载入提交数据... | |
| path | 正在载入提交数据... | |
| pin | 正在载入提交数据... | |
| repo | 正在载入提交数据... | |
| routing | 正在载入提交数据... | |
| server/http | 正在载入提交数据... | |
| test | 正在载入提交数据... | |
| thirdparty | 正在载入提交数据... | |
| tour | 正在载入提交数据... | |
| unixfs | 正在载入提交数据... | |
| updates | 正在载入提交数据... | |
| util | 正在载入提交数据... | |
| .dockerignore | 正在载入提交数据... | |
| .gitignore | 正在载入提交数据... | |
| .travis.yml | 正在载入提交数据... | |
| Dockerfile | 正在载入提交数据... | |
| LICENSE | 正在载入提交数据... | |
| Makefile | 正在载入提交数据... | |
| README.md | 正在载入提交数据... | |
| dev.md | 正在载入提交数据... | |
| doc.go | 正在载入提交数据... |