summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add autotests for QHostInfo::abortHostLookupShane Kearns2011-04-051-0/+49
| | | | | | | 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 in QHostInfo::localDomainNameAaron Tunney2011-04-051-1/+3
| | | | | | Updating comment to indicate that the feature isn't supported on Symbian. Reviewed-by: Shane Kearns
* Thread safety for QHostInfo symbian implementationShane Kearns2011-04-052-10/+46
| | | | | | | | | | 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
* Fix typo in class nameShane Kearns2011-04-053-36/+36
| | | | | | Manger -> Manager Reviewed-by: Markus Goetz
* Add test case for thread safety of the QHostInfo async APIShane Kearns2011-04-051-1/+52
| | | | | | | | | 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
* Implement cache support for the async resolverShane Kearns2011-04-052-3/+28
| | | | | | | | | | 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
* Update address reporting codeShane Kearns2011-04-051-22/+17
| | | | | | | | | | | | | | | | 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
* Fix multicast group membershipShane Kearns2011-04-051-13/+23
| | | | | | | 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
* Fix assert fail when debug log is enabledShane Kearns2011-04-051-1/+4
| | | | | | | | | | | | 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
* Don't reinitialise udp socket when IP versions don't matchShane Kearns2011-04-051-1/+1
| | | | | | | | | 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
* Fix deadlock in QNetworkSession::stopShane Kearns2011-03-311-1/+1
| | | | | | | The mutex added needs to be recursive, as stop calls close internally, which also needs to lock the mutex. Reviewed-by: Markus Goetz
* Add partial upgrade rules for Qt's pluginsShane Kearns2011-03-311-0/+19
| | | | | | | 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
* Fix error handling in qhostinfo_symbianShane Kearns2011-03-311-54/+42
| | | | | | | | | 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
* Ayschronous Next() change for DNS resolution.Aaron Tunney2011-03-312-51/+77
| | | | Reviewed-By: Shane Kearns
* Fix ssl autotest .pro filesShane Kearns2011-03-293-19/+3
| | | | | | | ReadUserData needed to avoid platsec warnings accessing cert store. Removed incorrect deployment from the two new on demand tests. Reviewed-by: Markus Goetz
* Remove 2 QSKIP from tst_qnetworkdiskcacheShane Kearns2011-03-291-6/+0
| | | | | | | Skipped because of open C bug, but these tests are passing in N8 with symbian socket & file engines Reviewed-by: Markus Goetz
* Add bearer startup to qabstractnetworkcache autotestShane Kearns2011-03-291-0/+26
| | | | | | This avoids the test starting and stopping the WLAN for each test case Reviewed-by: Markus Goetz
* Make qhttpnetworkconnection autotest work with the new test serverShane Kearns2011-03-291-17/+31
| | | | | | | | | | | | 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
* Ensure shared network session deleted from correct threadShane Kearns2011-03-291-1/+6
| | | | | | | | | 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
* Symbian workaround for networkselftestShane Kearns2011-03-291-5/+11
| | | | | | | | | | | 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
* Bearer support for autotestsShane Kearns2011-03-292-1/+27
| | | | | | | Start default bearer when running network self test Fix typo in qnetworkreply test Reviewed-by: Markus Goetz
* Performance: use select poll for timeout of 0msShane Kearns2011-03-291-30/+37
| | | | | | | | 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
* Update DEF filesShane Kearns2011-03-287-15/+178
|
* Fix new http multipart test case on symbianShane Kearns2011-03-251-8/+5
| | | | | | | 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
* Merge remote branch 'earth/master' into symbian-socket-engineShane Kearns2011-03-251031-14425/+48704
|\ | | | | | | | | | | | | | | | | | | | | 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
| * Use QByteArray::isEmpty instead of isNull in QLocaleDenis Dzyubenko2011-03-242-4/+4
| | | | | | | | | | | | | | | | 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
| * Fixed documentation for QLocaleDenis Dzyubenko2011-03-243-17/+17
| | | | | | | | Reviewed-by: trustme
| * Improved performance of mapFromGlobal/mapToGlobal on X11Denis Dzyubenko2011-03-241-0/+28
| | | | | | | | | | | | | | | | 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
| * Merge remote branch 'earth-team/master-i18n' into 4.8-earthDenis Dzyubenko2011-03-2440-8620/+13579
| |\ | | | | | | | | | | | | Conflicts: src/corelib/tools/tools.pri
| | * QLocale fixes.Denis Dzyubenko2011-03-245-28/+28
| | | | | | | | | | | | | | | | | | Prepended non-static functions with a qt_ prefix as our policy says. Reviewed-by: trustme
| | * Fixed a typo in the manual testDenis Dzyubenko2011-03-231-1/+1
| | | | | | | | | | | | Reviewed-by: trustme
| | * Revert "Added short time format support on Windows."Denis Dzyubenko2011-03-231-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 96e3f2358ffdeb12c141e8139cdfbc8b24a14700. Conflicts: src/corelib/tools/qlocale_win.cpp
| | * QLocale: Compile fix for windowsDenis Dzyubenko2011-03-221-44/+43
| | | | | | | | | | | | Reviewed-by: trustme
| | * Bugfixing QLocale::weekdays and updating manual testZeno Albisser2011-03-222-15/+5
| | | | | | | | | | | | Reviewed-by: Denis Dzyubenko
| | * replaced weekendStart and weekendEnd with weekdays functionZeno Albisser2011-03-215-31/+27
| | | | | | | | | | | | | | | Reviewed-by: Denis Dzyubenko Task-number: QTBUG-17088
| | * Merge branch 'master-i18n' of scm.dev.nokia.troll.no:qt/qt-earth-team into ↵Denis Dzyubenko2011-03-1710-374/+530
| | |\ | | | | | | | | | | | | | | | | | | | | | | | | master-i18n Conflicts: src/corelib/tools/qlocale.h
| | | * Updated CLDR data for QLocale.Liang Qi2011-03-081-371/+394
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| | | * Using list patterns to get a string from list in QLocale.Liang Qi2011-03-089-4/+137
| | | | | | | | | | | | | | | | | | | | Reviewed-by: Denis Dzyubenko Task-number: QTBUG-17097
| | * | Cache some values to improve digit substitution on Windows.Denis Dzyubenko2011-03-171-27/+42
| | | | | | | | | | | | | | | | Reviewed-by: Zeno Albisser
| | * | Fixed the qlocale manual test app on symbian.Denis Dzyubenko2011-03-173-3/+10
| | | | | | | | | | | | | | | | Reviewed-by: trustme
| | * | Narrow day name on WindowsDenis Dzyubenko2011-03-171-3/+20
| | | | | | | | | | | | | | | | | | | | | | | | Added narrow day name support available on Windows Vista and newer. Reviewed-by: Zeno Albisser
| | * | Refactored QLocale on Windows.Denis Dzyubenko2011-03-173-274/+358
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| | * | Use digit substitution on Windows for currency formatting.Denis Dzyubenko2011-03-171-1/+4
| | | | | | | | | | | | | | | | Reviewed-by: Zeno Albisser
| | * | Added digit substitution for date/time on Windows.Denis Dzyubenko2011-03-171-7/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Whenever we are asked to convert a date/time object to string, we should respect the system digit substitution rules. Reviewed-by: Zeno Albisser
| | * | Added short time format support on Windows.Denis Dzyubenko2011-03-171-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| | * | Merge remote branch 'earth-team/master' into master-i18nDenis Dzyubenko2011-03-171032-24035/+46417
| | |\ \ | | | | | | | | | | | | | | | | | | | | Conflicts: src/corelib/tools/qlocale.cpp
| | * | | Improved QLocale::quoteString.Denis Dzyubenko2011-03-071-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| | * | | Extended documentation for QLocale.Denis Dzyubenko2011-03-041-9/+28
| | | | | | | | | | | | | | | | | | | | Reviewed-by: axis
| | * | | Added convenience script enum values to QLocale.Denis Dzyubenko2011-03-043-2/+30
| | | |/ | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| | * | Fixed spelling in the comment.Denis Dzyubenko2011-03-041-1/+1
| | | | | | | | | | | | | | | | Reviewed-by: trustme