integration test for saved copyd
Pull-request for branch users/izetag/SAVEDCOPY-36
@@ -228,11 +228,18 @@ public:
{
}
- inline TSocketHolder(TSocketHolder&& other) {
+ inline TSocketHolder(TSocketHolder&& other) noexcept {
Fd_ = other.Fd_;
other.Fd_ = INVALID_SOCKET;
}
+ inline TSocketHolder& operator=(TSocketHolder&& other) noexcept {
+ Close();
+ Swap(other);
+
+ return *this;
+ }
+
inline ~TSocketHolder() {
Close();
}
