wsd: remove identical simulateSocketError override
Since both implementations are identical, there really is no benefit to having two version. Change-Id: I4a5288243291c0d5706df8e8870b918fab425317 Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
This commit is contained in:
parent
92c6428e4b
commit
b7b7801d8a
3 changed files with 1 additions and 22 deletions
|
@ -88,22 +88,6 @@ bool StreamSocket::simulateSocketError(bool read)
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !MOBILEAPP && ENABLE_SSL
|
|
||||||
bool SslStreamSocket::simulateSocketError(bool read)
|
|
||||||
{
|
|
||||||
if ((socketErrorCount++ % 7) == 0)
|
|
||||||
{
|
|
||||||
LOG_TRC("Simulating socket error during " << (read ? "read." : "write."));
|
|
||||||
// Note: maintain the _sslWantsTo state so we poll on
|
|
||||||
// the right event as that requested by the last ssl API.
|
|
||||||
errno = EAGAIN;
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
#endif //ENABLE_DEBUG
|
#endif //ENABLE_DEBUG
|
||||||
|
|
||||||
#if ENABLE_SSL
|
#if ENABLE_SSL
|
||||||
|
|
|
@ -1544,7 +1544,7 @@ protected:
|
||||||
protected:
|
protected:
|
||||||
#if ENABLE_DEBUG
|
#if ENABLE_DEBUG
|
||||||
/// Return true and set errno to simulate an error
|
/// Return true and set errno to simulate an error
|
||||||
virtual bool simulateSocketError(bool read);
|
bool simulateSocketError(bool read);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
@ -201,11 +201,6 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
#if ENABLE_DEBUG
|
|
||||||
/// Return true and set errno to simulate an error
|
|
||||||
virtual bool simulateSocketError(bool read) override;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/// The possible next I/O operation that SSL want to do.
|
/// The possible next I/O operation that SSL want to do.
|
||||||
enum class SslWantsTo
|
enum class SslWantsTo
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue