diff options
author | Janne Anttila <janne.anttila@digia.com> | 2010-05-10 11:18:53 (GMT) |
---|---|---|
committer | Janne Anttila <janne.anttila@digia.com> | 2010-05-10 11:28:57 (GMT) |
commit | 20b7f5773777b8999f21f50e55b8f446a29fd976 (patch) | |
tree | 910854b499aac6b357cb8f0b6a98626234d7cd62 /src/network | |
parent | 8e3e9f98c6e48cce2b4eda469e26de631a0c34fe (diff) | |
download | Qt-20b7f5773777b8999f21f50e55b8f446a29fd976.zip Qt-20b7f5773777b8999f21f50e55b8f446a29fd976.tar.gz Qt-20b7f5773777b8999f21f50e55b8f446a29fd976.tar.bz2 |
Workaround for Symbian Open C bug in socket connect.
Socket connect in Symbian may return non-standard EPIPE error,
after which the connection is terminated. Added Symbian specific
workaround to set socket to UnconnectedState if EPIPE errno is
received. In addition a bug report for Open C is created:
http://developer.symbian.org/bugs/show_bug.cgi?id=2676
Task-number: QT-3362
Reviewed-by: Aleksandar Sasha Babic
Reviewed-by: Markus Goetz
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/socket/qnativesocketengine_unix.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/network/socket/qnativesocketengine_unix.cpp b/src/network/socket/qnativesocketengine_unix.cpp index d155357..70bb0da 100644 --- a/src/network/socket/qnativesocketengine_unix.cpp +++ b/src/network/socket/qnativesocketengine_unix.cpp @@ -425,6 +425,9 @@ bool QNativeSocketEnginePrivate::nativeConnect(const QHostAddress &addr, quint16 case EBADF: case EFAULT: case ENOTSOCK: +#ifdef Q_OS_SYMBIAN + case EPIPE: +#endif socketState = QAbstractSocket::UnconnectedState; default: break; |