| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
Test calling the abort from the same thread or from a different thread.
The different thread is to check thread safety of the API.
Reviewed-by: Markus Goetz
|
|
|
|
|
|
| |
Updating comment to indicate that the feature isn't supported on Symbian.
Reviewed-by: Shane Kearns
|
|
|
|
|
|
|
|
|
|
| |
Each thread needs at least one current request if it has any queued
requests, this is to stop the queue stalling.
When starting a queued request, start it in the same thread it belongs to
When aborting a request from the wrong thread, just detach it (it will
complete normally but the slot isn't connected, and then delete itself)
Reviewed-by: Markus Goetz
|
|
|
|
|
|
| |
Manger -> Manager
Reviewed-by: Markus Goetz
|
|
|
|
|
|
|
|
|
| |
The existing threadSafety test only tested calling the blocking API
from multiple threads. As the asynchronous API may be implemented in
a different way, it should be tested separately.
Create 10 threads, each of which queues 10 async name lookups.
Reviewed-by: Markus Goetz
|
|
|
|
|
|
|
|
|
|
| |
Add additional check when starting a queued request, as the cache may
have been populated while the request was queued.
Put completed requests in the cache (note cache code internally discards
errored results and only caches successful results)
Reviewed-by: Aaron Tunney
Reviewed-by: Markus Goetz
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When an IP6 address contains a valid IP4 address, report the address
in IP4 format (this is needed for SOCKS5 socket engine)
When binding Any or AnyIPv6, create a dual mode socket (KAfUnspec),
but report the local address as being the same as what the user
requested. (by default, symbian returns ::0 for the dual mode socket,
which causes problems for SOCKS and UDP code)
The intent is that most applications written for IP4 can work
transparently in an IP6 environment.
QTcpServer or QUdpSocket can accept either IP4 or IP6 from the same
socket.
Reviewed-by: Markus Goetz
|
|
|
|
|
|
|
| |
Although symbian's multicast support is incomplete, this is enough to
pass the QUdpSocket test case. (no IGMP/MLD support in the OS)
Reviewed-by: Markus Goetz
|
|
|
|
|
|
|
|
|
|
|
|
| |
Enough debug logging allows time for the proxy server to close the http
connection after sending a 407 response. This errors the connection,
but then the queued _q_startNextRequest is immediately run, causing an
assertion failure.
Changed this to a soft failure which allows the error to propagate
rather than crashing.
Test case is tst_qnetworkreply::ioPostToHttpFromSocket
Reviewed-by: Markus Goetz
|
|
|
|
|
|
|
|
|
| |
An IPv6 socket can send to IPv4 addresses when in a dual mode stack.
On symbian, autobinded sockets have the ::0 local address rather than
0.0.0.0 - this check was causing the socket to be destroyed and recreated
with every call to writeDatagram.
Reviewed-by: Markus Goetz
|
|
|
|
|
|
|
| |
The mutex added needs to be recursive, as stop calls close internally,
which also needs to lock the mutex.
Reviewed-by: Markus Goetz
|
|
|
|
|
|
|
| |
Allows testing of plugins such as bearer without needing to reinstall
all of Qt. Equivalent to the rules in qbase.pri for the normal DLLs
Reviewed-by: Miikka Heikkinen
|
|
|
|
|
|
|
|
|
| |
De-duplicate error handling into a helper function.
RHostResolver can return a few different errors at the end of the list,
so treat these benign ones the same.
When Next() gives an error, return any results we already obtained.
Reviewed-by: Aaron Tunney
|
|
|
|
| |
Reviewed-By: Shane Kearns
|
|
|
|
|
|
|
| |
ReadUserData needed to avoid platsec warnings accessing cert store.
Removed incorrect deployment from the two new on demand tests.
Reviewed-by: Markus Goetz
|
|
|
|
|
|
|
| |
Skipped because of open C bug, but these tests are passing in N8 with
symbian socket & file engines
Reviewed-by: Markus Goetz
|
|
|
|
|
|
| |
This avoids the test starting and stopping the WLAN for each test case
Reviewed-by: Markus Goetz
|
|
|
|
|
|
|
|
|
|
|
|
| |
Loosen requirements for generated error pages (these vary with exact
version and locale of the web server). Don't care what the length is,
but if a content-length header is sent then it should match the size
of the error page data. (apache2 does send content-length for errors)
Don't fail the gzip test if the server doesn't send a content-length
header. That's a server bug rather than Qt. (apache2 doesn't send)
Reviewed-by: Markus Goetz
|
|
|
|
|
|
|
|
|
| |
Due to threaded http, the shared QNetworkSession can have its last
reference removed from a http delegate thread. To avoid this deadlocking
use a deleteLater custom deleter so that the QNS is deleted from the
thread it has affinity for.
Reviewed-by: Markus Goetz
|
|
|
|
|
|
|
|
|
|
|
| |
The frox ftp proxy closes connections using TCP RST instead of a normal
TCP FIN. On symbian, this causes the received but unacknowledged
preceding packet to be discarded (the "221 Goodbye" ftp response).
As QNAM and QFTP don't care about this, the network self test won't
either. (only for symbian, as windows and unix TCP/IP stacks retain
the unacknowledged packet in the receive queue)
Reviewed-by: Markus Goetz
|
|
|
|
|
|
|
| |
Start default bearer when running network self test
Fix typo in qnetworkreply test
Reviewed-by: Markus Goetz
|
|
|
|
|
|
|
|
| |
A timer of 0ms completes on the next kernel tick (up to 0.999ms)
There is a poll GetOpt we can use instead that doesn't require using
a timer to cancel the select ioctl.
Reviewed-by: Markus Goetz
|
| |
|
|
|
|
|
|
|
| |
The new test added three reference data files required by the test,
but these were not being included in the sis file.
Reviewed-by: mread
|
|\
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Conflicts:
src/network/access/qhttpnetworkconnectionchannel.cpp
src/network/socket/qlocalsocket.cpp
src/s60installs/bwins/QtCoreu.def
src/s60installs/bwins/QtGuiu.def
src/s60installs/bwins/QtTestu.def
src/s60installs/eabi/QtCoreu.def
src/s60installs/eabi/QtGuiu.def
|
| |
| |
| |
| |
| |
| |
| |
| | |
When checking whether the environment variable is set or not, check for
its length by using isEmpty as the envvar can be set to an empty string.
Task-number: QTBUG-15321
Reviewed-by: Zeno Albisser
|
| |
| |
| |
| | |
Reviewed-by: trustme
|
| |
| |
| |
| |
| |
| |
| |
| | |
We don't call XTranslateCoordinates anymore, but use the toplevel window
offset that we already store to convert between screen coordinates and
widget coordinates.
Reviewed-by: João Abecasis
|
| |\
| | |
| | |
| | |
| | | |
Conflicts:
src/corelib/tools/tools.pri
|
| | |
| | |
| | |
| | |
| | |
| | | |
Prepended non-static functions with a qt_ prefix as our policy says.
Reviewed-by: trustme
|
| | |
| | |
| | |
| | | |
Reviewed-by: trustme
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This reverts commit 96e3f2358ffdeb12c141e8139cdfbc8b24a14700.
Conflicts:
src/corelib/tools/qlocale_win.cpp
|
| | |
| | |
| | |
| | | |
Reviewed-by: trustme
|
| | |
| | |
| | |
| | | |
Reviewed-by: Denis Dzyubenko
|
| | |
| | |
| | |
| | |
| | | |
Reviewed-by: Denis Dzyubenko
Task-number: QTBUG-17088
|
| | |\
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
master-i18n
Conflicts:
src/corelib/tools/qlocale.h
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This is a temporary commit and meant to be removed before merging the branch
into Qt as we don't want to bloat the repository size by updating CLDR every
time we make a small change to QLocale, but do that only once when we are done.
Reviewed-by: trustme
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Reviewed-by: Denis Dzyubenko
Task-number: QTBUG-17097
|
| | | |
| | | |
| | | |
| | | | |
Reviewed-by: Zeno Albisser
|
| | | |
| | | |
| | | |
| | | | |
Reviewed-by: trustme
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Added narrow day name support available on Windows Vista and newer.
Reviewed-by: Zeno Albisser
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Added LocaleChanged system locale enum that is queried whenever we detect that
the system locale is changed. This should make it easier to have cached values
in the system locale implementations.
Reviewed-by: Zeno Albisser
|
| | | |
| | | |
| | | |
| | | | |
Reviewed-by: Zeno Albisser
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Whenever we are asked to convert a date/time object to string, we should
respect the system digit substitution rules.
Reviewed-by: Zeno Albisser
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Since Windows 7 there is a new TIME_NOSECONDS flag that is supposed to be used
whenever short time format is requested.
Reviewed-by: Zeno Albisser
|
| | |\ \
| | | | |
| | | | |
| | | | |
| | | | | |
Conflicts:
src/corelib/tools/qlocale.cpp
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Whenever the system locale doesn't return the proper alternate quotes
we should try the standard quotes before falling back to the CLDR data.
Reviewed-by: trustme
|
| | | | |
| | | | |
| | | | |
| | | | | |
Reviewed-by: axis
|
| | | |/
| | |/|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Apparently SimplifiedHan and TraditionalHan are not widely used terms, hence
adding convenience names SimplifiedChineseScript and TraditionalChineseScript.
Also added the missing documentation for the Script enum.
Reviewed-by: trustme
|
| | | |
| | | |
| | | |
| | | | |
Reviewed-by: trustme
|