* Update the max RequestID we have seen received on this connection. */
| 139 | * Update the max RequestID we have seen received on this connection. |
| 140 | */ |
| 141 | void updateMaxReceivedRequestID(int32_t id) { |
| 142 | if (id > maxReceivedRequestID) |
| 143 | maxReceivedRequestID = id; |
| 144 | |
| 145 | // Now make sure the RequestIDs the server will generate are very far ahead of the ones seen from the client. |
| 146 | int32_t minGeneratedID = maxReceivedRequestID + 1000000; |
| 147 | if (minGeneratedID > nextServerGeneratedRequestID) |
| 148 | nextServerGeneratedRequestID = minGeneratedID; |
| 149 | } |
| 150 | |
| 151 | private: |
| 152 | Future<Void> currentWriteLocked; |
no outgoing calls
no test coverage detected