rsocket / rsocket-cpp

C++ implementation of RSocket
http://rsocket.io
Apache License 2.0
253 stars 99 forks source link

Turn RSocketStateMachine::disconnect() into close() for non-resumable… #841

Closed alexmalyshev closed 6 years ago

alexmalyshev commented 6 years ago

… connections

Making things simpler to follow along. We have close() and closeWithError() for closing connections, and now we'll have disconnect() and disconnectWithError() for disconnecting them. If a connection can't be reconnected, then disconnect() should behave like close().

Renames disconnectOrCloseWithError() to disconnectWithError().

Move FrameSink into KeepaliveTimer.h. It makes sense to have it there and not with RSocketStateMachine right now.

Inline uses of RSocketStateMachine private methods setResumable(), isClosed(), and getKeepaliveTime().