document timeouts in specs

This commit is contained in:
vyzo 2018-11-29 10:32:18 +02:00
parent 32906e4fc0
commit 60e4ee8362
2 changed files with 4 additions and 0 deletions

View File

@ -87,6 +87,7 @@ Request{
ConnectRequest: {
Peer: <peer id>,
Addrs: [<addr>, ...],
timeout: time, // optional, in seconds
},
}
```
@ -134,6 +135,7 @@ Request{
StreamOpenRequest: {
Peer: <peer id>,
Proto: [<protocol string>, ...],
timeout: time, // optional, in seconds
},
}
```

View File

@ -30,6 +30,8 @@ messages have a `Type` parameter that specifies whether a response marks the
the `END` of a stream of messages. Single-value responses will simply return a
single `DHTResponse` with type `VALUE`.
All `DHTRequest`s also take an optional timeout in seconds.
### Protocol Requests
*Protocols described in pseudo-go. Items of the form [item, ...] are lists of