| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
IPv6 test was skipped for symbian, now enabled it.
Also start the default bearer before testing, so there are interfaces
other than loopback available to test.
Reviewed-by: Markus Goetz
|
|
|
|
| |
Reviewed-by: Markus Goetz
|
|
|
|
|
|
| |
Moved from the subdirs pro file to the executable pro files.
Reviewed-by: Markus Goetz
|
|
|
|
|
|
|
|
|
| |
The https:limited subtest was too slow and didn't fail in the expected
place (it was expected to be too fast)
Both limited test cases timed out when debug enabled in the socket engine,
so the timeout is increased from 11->30 seconds
Reviewed-by: Markus Goetz
|
|
|
|
|
|
|
| |
Instead of creating socket notifiers and sending faked events to them,
call the engine's notification functions directly.
Reviewed-by: Markus Goetz
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
In the unix socket engine, EADDRNOTAVAIL is returned by the native call
when attempting to bind to a non existant interface. On symbian, the
generic KErrNotFound is returned.
Specifically for bind() convert KErrNotFound to the expected error code
QAbstractSocket::SocketAddressNotAvailableError which is relied on by
autotest (and possibly but unlikely, existing applications)
Reviewed-by: Markus Goetz
|
|
|
|
|
|
|
|
|
|
| |
Set symbian capabilities in the two sub .pro files
Enable IPv6 test on symbian
Disable tests that use open C functions on socket descriptors
When bearer management is enabled, start the network interface at start
of the test.
Reviewed-by: Markus Goetz
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
QNetworkAccessBackend has an optimisation to not start the bearer when
the destination is localhost. On symbian, if the bearer is specified but
not started, then socket creation will fail.
To fix this, delay pushing the network session until start() is called,
at which point we know if the localhost optmisation will be applied or
not.
When using localhost, don't specify any network session - symbian socket
engine will create the socket successfully in thie case.
Reviewed-by: Markus Goetz
|
|
|
|
| |
Reviewed-by: Markus Goetz
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
QHttpThreadDelegate::abortRequest was deleting itself, but not exiting
the event loop. For the synchronous usage, both these are incorrect.
Without exiting the event loop, the main thread waits forever.
If it deletes itself, then the main thread will access the deleted memory
on return (the delegate->incomingErrorCode class member) which can crash
with frequency depending on heap implementation.
With this change, abort acts more like the synchronousFinishedWithErrorSlot.
Reviewed-by: Markus Goetz
|
|
|
|
|
|
| |
Activated by defining QHTTPTHREADDELEGATE_DEBUG
Reviewed-by: Markus Goetz
|
|
|
|
|
|
|
| |
The proxy socket engines forward the network session to the "real" socket
they use natively.
Reviewed-by: Markus Goetz
|
|
|
|
|
|
| |
The echo test case uses the UDP echo service on the qt-test-server
Reviewed-by: Markus Goetz
|
|
|
|
|
|
|
|
|
| |
There is no point to test the proxy setting for connections to localhost,
because the proxy is bypassed anyway.
Skipping running the same test case multiple times makes this test complete
a bit faster.
Reviewed-by: Markus Goetz
|
|
|
|
| |
Reviewed-by: Markus Goetz
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Increased heap size to avoid OOM
Increased timeouts in the timeoutConnect test, as these randomly fail
at least in debug builds with 50ms (symbian threads have a 20ms timeslice
for round robin scheduling of equal priority threads, so that could be
related)
Skip the setSocketDescriptor test on symbian, since native sockets are
not ints, open c sockets are not supported, and we decided not to support
RSocket adoption unless it's specifically requested.
Reviewed-by: Markus Goetz
|
|
|
|
|
|
|
|
| |
Timeout of 5000 seconds (which was probably intended to be 5000ms)
reduced to a more reasonable 60 seconds, to prevent the test from hanging
in case of errors in the proxy server.
Reviewed-by: Markus Goetz
|
|
|
|
| |
Reviewed-by: Markus Goetz
|
|
|
|
|
|
|
|
|
|
|
| |
These network tests have no dependency on the QtGui dll, so I have moved
them to the network autotest group.
In some cases this was not stated in the tests' .pro files.
The gui autotest group still has a network test (qtcpsocket), but this
has a dependency on QtGui for one test case (which uses QMessageBox)
Reviewed-by: Markus Goetz
|
|
|
|
| |
Reviewed-by: Markus Goetz
|
|
|
|
|
|
| |
RTimer is only usable in the thread it was created.
Reviewed-by: Markus Goetz
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
1. Don't crash if qt-test-server isn't found, fail instead
2. symbian: 200ms is too short for the timeout test when using proxies,
extended to 1000ms
3. Don't crash when the disconnectWhileConnectingNoEventLoop fails
used a QScopedPointer with custom cleanup to shutdown the thread
tidily.
4. Fast fail for downloadBigFile test if the connection is lost before
the download is complete. This uses the disconnected signal to exit
the event loop early. Previously on this type of failure it took 10
minutes for the event loop to time out.
Reviewed-by: Markus Goetz
|
|
|
|
|
|
|
|
|
|
| |
The http socket engine was hiding errors other than RemoteHostClosedError.
This caused problems, because for other errors, the low level socket is
still closed in the native socket engine. By not emitting the read
notification, the error was never informed to QAbstractSocket and as a
result, the application never gets the disconnected signal.
Reviewed-by: Martin Petersson
|
|
|
|
|
|
|
| |
Basically the same as f86e014bb6f2754bfed33106021a809ca8c2ce73.
The declarations were appearing twice in the header file after merging
Reviewed-by: Trust Me
|
|\
| |
| |
| |
| |
| |
| |
| | |
scm.dev.troll.no:qt/qt-symbian-network into symbian-socket-engine
Conflicts:
src/network/access/qnetworkaccessmanager.cpp
tests/auto/qsslsocket/tst_qsslsocket.cpp
|
| |
| |
| |
| |
| |
| |
| | |
Symbian workarounds are better in the symbian socket engine than
generic layer, where this is possible.
Reviewed-by: Markus Goetz
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
When starting a connection implicitly, datagrams fail with KErrWouldBlock
on S60 5.0 and earlier. On symbian 3, they are dropped without error, but
the bytes written is set to 0.
Due to an apparent bug in symbian, the first packet is failed/dropped on
a UDP socket even if the bearer is up due to existing TCP connection.
With blocking sockets or explicit RConnection usage, this doesn't happen.
Reviewed-by: Markus Goetz
|
| |
| |
| |
| |
| |
| | |
qtcpsocket autotest checks for a specific error
Reviewed-by: Markus Goetz
|
| |
| |
| |
| |
| |
| |
| | |
This ensures the specified QNetworkSession from the QNetworkAccessManager
is used to route the packets, when using a SOCKS proxy.
Reviewed-by: Markus Goetz
|
| |
| |
| |
| |
| |
| |
| | |
Symbian API RecvOneOrMore only supports stream oriented sockets.
So for UDP we use RecvFrom instead and discard the source address.
Reviewed-by: Markus Goetz
|
| |
| |
| |
| |
| |
| |
| |
| | |
Increased timeout on some unstable test cases.
Added a Q_EXPECT_FAIL if we can't connect to a server which is inside
firewall.
Reviewed-by: Markus Goetz
|
| |
| |
| |
| |
| |
| |
| |
| | |
Convert assertions to failure, increase heap size to allow
creating 10MB buffers without std::bad_alloc exception or memory
allocation error from openssl.
Reviewed-by: Markus Goetz
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Mistake in the qfilesystemiterator_symbian implementation.
Readable without Writable was thought to mean show only read-only files,
but this isn't the expected behaviour of QDir[Iterator]
Added an autotest, as this was only covered by ssl tests in the network
layer.
Reviewed-by: joao
|
| |
| |
| |
| | |
Reviewed-by: Markus Goetz
|
| |
| |
| |
| |
| |
| | |
Excluded maemo code from symbian builds.
Reviewed-by: Markus Goetz
|
| |
| |
| |
| | |
Reviewed-by: Markus Goetz
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Because of the shared QNetworkSession, we need to disconnect the signals
before detaching from the session. Otherwise we may receive signals from
an old session after switching configurations.
Also, when a session is connected, we get both the state change (connected)
and the opened signals from the session. This needs to be distinguished
from the roaming->connected state change to avoid getting the
networkSessionConnected signal twice.
Reviewed-by: Markus Goetz
Task-Number: QTBUG-16901
|
| |
| |
| |
| | |
Reviewed-by: Markus Goetz
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
QObject and CBase both expect to be the root class of the object hierarchy
so it can cause problems if they are used in multiple inheritance.
Refactored the CActive used for starting RConnection into a helper class.
Reviewed-by: Markus Goetz
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The implementation was opening RConnection handles on top of previous
instances, and not closing RConnection handles. Both of these cause a
resource leak in the socket server which cannot clean up the connection
until the Qt process has exited.
After a lot of this (which could be triggered by the QNetworkReply auto
test), the socket server may run out of memory resulting in all socket
operations failing.
Reviewed-by: Markus Goetz
|
| |
| |
| |
| |
| |
| | |
Qt no longer uses open C sockets
Reviewed-by: Markus Goetz
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Implemented a tunnel to get the QNetworkSession from QNetworkAccessManager
down to the socket engine. This is currently a private API for QNAM.
This patch only implements the FTP backend - the other backends are to
follow.
On Symbian, the native socket engine will extract the native session
(RConnection) from the QNetworkSession implementation, and use that to
open sockets using the explicitly specified session.
When no session is specified on the socket (default for networking usage
outside of QNAM) then the socket is opened with no RConnection specified,
which allows the IP stack to find any route via an open interface.
The QFtp autotest is enhanced to test QFtp with an explicit session as well
as implicit connectivity (where a QNetworkSession is opened by the user,
and then QFtp is used without a specified connection).
This autotest gives better coverage than the FTP test cases in QNetworkReply.
Reviewed-by: Markus Goetz
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
One of the qftp test cases calls processEvents() in a tight loop instead
of using an event loop. This was causing the application to hang on symbian
as it blocked a lower priority system thread and the WLAN connection
never completed.
Although calling processEvents in a tight loop is bad practice, it works
on other OS where thread priorities are dynamic.
Reviewed-by: mread
|
| |
| |
| |
| |
| |
| |
| | |
f32file.h (public) depends on e32svr.h (private), and in symbian^3 the
private headers have been moved to a different include path.
Reviewed-by: axis
|
| | |
|
| |\
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Conflicts:
src/network/access/qnetworkaccessmanager.cpp
src/network/bearer/qnetworksession.cpp
src/network/kernel/qnetworkproxy_symbian.cpp
src/network/socket/qnativesocketengine_unix.cpp
tests/auto/platformsocketengine/tst_platformsocketengine.cpp
|
| | | |
|
| | | |
|