summaryrefslogtreecommitdiffstats
path: root/src/network
Commit message (Collapse)AuthorAgeFilesLines
* QSslCertificate: support large serial numbersPeter Hartmann2011-06-091-4/+19
| | | | | | | | | | | We were calling an OpenSSL function that returned a long for the serial number; sometimes serial numbers are too big to fit into a long (up to 20 octets). In that case, do not convert the serial number to decimal, but just output the hexadecimal value. Reviewed-by: Zeno Albisser Task-number: QTBUG-9973 (cherry picked from commit 0f16c7ce8dcd6f4905d14875088c55148e41366a)
* Secure Cookies should only be sent over secure connections.Robert Hogan2011-06-091-0/+3
| | | | | | | | | | | | | | | | | | | | | | | http://bugreports.qt.nokia.com/browse/QTBUG-9618 QtWebKit currently fails the following test: LayoutTests/http/tests/xmlhttprequest/cookies.html This is because QNetworkCookieJar::cookiesForUrl returns secure cookies even when the connection is not secure. A 'secure' cookie is set by response headers from a http server as follows: 'Set-Cookie: cookie-name=value; secure' Correct QNetworkCookieJar::cookiesForUrl to ignore secure cookies when the url in the request is not 'https:'. Task-number: QTBUG-9618 Merge-request: 2372 Reviewed-by: Peter Hartmann <peter.hartmann@nokia.com> (cherry picked from commit 483fdd017d9998c6d7f4a035ca615e15fbc97e6a)
* QNetworkReply: Fix canReadLine()Markus Goetz2011-06-092-1/+9
| | | | | Reviewed-by: Peter Hartmann (cherry picked from commit dd6c5cad88a56fb3a342fe9d4fc3b113ffe3fd53)
* QNativeSocketEngine: Fix some error handling related to waitFor*()Markus Goetz2011-06-091-0/+6
| | | | | | Task: QTBUG-7054 Reviewed-by: Peter Hartmann (cherry picked from commit 8aaa61f8ea11c6e5794b5a3f6bf14bbbcb712074)
* Change to release licenses for 4.6.3.Jason McDonald2010-05-30137-1781/+1781
| | | | Reviewed-by: Trust Me
* Removed double EINTR loop from nativeWrite and nativeRead.Janne Anttila2010-05-211-8/+2
| | | | | | | | | | | | qt_safe_write and and qt_safe_read already contain EINTR_LOOP. It seems that this loop has been added to code due to merge/clean-up errors in commits: 4aafbd6222e7aeafd59a4a4356ba8c53b2bfa1d1 f0a8feed9e9b4de10df76faa350201edaef98f1d Reviewed-by: Aleksandar Sasha Babic Reviewed-by: Markus Goetz
* Fixing the compile issue.Aleksandar Sasha Babic2010-05-211-1/+1
| | | | | Private headers have to be included in consistent and proper way: not like "name_p.h" or "../name_p.h" but <private/name_p.h>
* QNAM HTTP: Remove dead codeMarkus Goetz2010-05-181-2/+0
|
* QNetworkAccessManager: Backends were tried in wrong orderMarkus Goetz2010-05-141-1/+1
| | | | | | | | We inversed the order. HTTP shall be tried first, file:// last. See https://bugs.webkit.org/show_bug.cgi?id=38935 Reviewed-by: Thiago
* QNAM HTTP: Preemptive anti crash if() statementMarkus Goetz2010-05-131-0/+3
| | | | Task-number: QTBUG-10649
* QNAM HTTP: Only force read when actual bytes availableMarkus Goetz2010-05-121-1/+2
| | | | | | | This should fix the problem where we were showing a warning that didn't matter anyway. Task-number: QTBUG-9619
* QHostInfo: Remove unused includesRitt Konstantin2010-05-053-5/+1
| | | | Reviewed-by: Markus Goetz
* QNAM HTTP: Start more requests in once function callMarkus Goetz2010-05-051-15/+13
| | | | Reviewed-by: Peter Hartmann
* fix crash in QLocalServer::close on WindowsJoerg Bornemann2010-05-041-1/+1
| | | | | | | | | If _q_onNewConnection failed, then QLocalServer got into a bad state. QLocalServer::isListening() still returned true and QLocalServer::close() crashed. Task-number: QTBUG-10388 Reviewed-by: ossi
* QNAM HTTP: Fix invoking a method when being destructed right now (2)Markus Goetz2010-04-261-0/+7
| | | | | Task-number: QTBUG-10171 Reviewed-by: Olivier Goffart
* QNAM: Use a reference in appendDownstreamDataMarkus Goetz2010-04-261-1/+1
|
* QNAM HTTP: Divide QNetworkReplyImplPrivate::appendDownstreamDataMarkus Goetz2010-04-262-25/+53
| | | | | | The goal is to easier add an overload for (const &QByteArray). Reviewed-by: Peter Hartmann
* QNAM HTTP: Avoid one copyMarkus Goetz2010-04-261-2/+1
| | | | | | Even if we have implicit sharing in QByteArray it makes sense. Reviewed-by: joao
* QNAM: Add a code comment related to the cacheMarkus Goetz2010-04-211-0/+5
|
* QNAM HTTP: Fixed a bug when getting empty files with pipeliningMarkus Goetz2010-04-211-1/+1
| | | | | Instead of returning from the socket's readyRead() handler break out of the switch() and continue parsing the data.
* QNAM HTTP: Pipelining improvementMarkus Goetz2010-04-201-1/+5
| | | | | | | Fail earlier. Use constant that was introduced in one of the previous commits. Reviewed-by: Peter Hartmann
* Ensure we stop the name lookups in QAbstractSocket if we abort().Thiago Macieira2010-04-201-0/+4
| | | | | | | If we're not even going to connect, there's no point in trying to get the host resolution Reviewed-By: Markus Goetz
* Don't rely on tryStart() to do job control.Thiago Macieira2010-04-201-4/+2
| | | | | | | It may fail but threads become available the next instant. Instead, simply use our own currentLookups count. Reviewed-by: Markus Goetz
* QNAM HTTP: Pipelining changesMarkus Goetz2010-04-153-42/+60
| | | | | | | | | Re-wrote some code to improve pipelining efficiency. Greatly helps with combining into one TCP packet. Task-number: QTBUG-9894 Task-number: QT-3280 Reviewed-by: Peter Hartmann
* QFtp: Fix possible crashMarkus Goetz2010-04-141-0/+6
| | | | Task-number: QTBUG-7359
* QNAM HTTP: Do not pipeline with WebLogic serversMarkus Goetz2010-04-131-0/+2
|
* Fix typos, there is no QT_NO_SSLMarkus Goetz2010-04-131-1/+1
| | | | | Reviewed-by: thiago Reviewed-by: andreas
* Merge branch '4.6' of scm.dev.nokia.troll.no:qt/qt-s60-public into ↵Qt Continuous Integration System2010-04-126-9/+70
|\ | | | | | | | | | | | | | | | | | | | | 4.6-integration * '4.6' of scm.dev.nokia.troll.no:qt/qt-s60-public: Fixed app freeze if switching to offline in middle of HTTP transaction. Document Symbian platform security requirements on Qt APIs Fixed app freeze if switching to offline in middle of HTTP transaction. Removed QtDeclarative.dll deployment from qt.iby in 4.6 branch. Don't build QtXmlPatterns' command line tools on Symbian.
| * Document Symbian platform security requirements on Qt APIsFrans Englich2010-04-125-0/+50
| | | | | | | | | | | | | | | | | | Work done jointly by Gareth and me. Yields no qdoc errors. Task-number: QTBUG-9342 Task-number: QTBUG-9120 Reviewed-by: Gareth Stockwell Reviewed-by: David Boddie
| * Fixed app freeze if switching to offline in middle of HTTP transaction.Janne Anttila2010-04-121-9/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When active socket is disconnected by swithcing to offline mode, native RSocket completes the active socket operations with KErrCancel (-3). Open C maps this error code to POSIX errno EINTR (4). Normally in Posix EINTR is only used to indicate that some operation was interrupted by POSIX signal. Qt has a while loops in network operations to handle operations interrupterd by signals. These while loops will be effectively forever loops in Symbian due to Open C error code mapping. Because Symbian does not have native support for signals, i.e. the network operations can never be really interrupted by POSIX signal, it is ok to remove these while loops completely on Symbian platform. This fix is a workaround to Open C incorrect error mapping, and should be removed once Open C has fixed their error mapping. Task-number: QT-3274 Reviewed-by: Aleksandar Sasha Babic
* | fix closing state in QLocalSocket on WindowsJoerg Bornemann2010-04-121-1/+9
|/ | | | | | | | When closing a QLocalSocket, which has unwritten data, the pipe writer was never deleted. Thus writing after a reconnect didn't work. Task-number: QTBUG-9681 Reviewed-by: ossi
* Fix compile error with QT_NO_NETWORKDISKCACHE in QtNetworkTasuku Suzuki2010-03-312-1/+6
| | | | | Merge-request: 2332 Reviewed-by: Peter Hartmann
* Fix compile error on Symbian 9.1, caused in network/access.Frans Englich2010-03-262-14/+33
| | | | | | | | | | | RVCT has trouble when QPointer is instantiated on classes with inlined constructors/functions. Compile fix for 43e1cffb16c2eea54392f5c56210b10abb2f044e, cc22a14f3d2159a8f760b44e3fe1636a3721ce95 and 656c02f128c56177c48b3de47f7b1e17dbbfa4d3 Reviewed-by: Peter Hartmann Reviewed-by: Prasanth
* QNAM HTTP: Symbian compile fixMarkus Goetz2010-03-251-0/+1
|
* QNAM HTTP: Fix crazy crash when exiting applicationMarkus Goetz2010-03-252-2/+2
| | | | | | | | | | | | | This fixes a crash in tst_qnetworkreply and in some QtWebKit based browsers. It was related to adding a QPointer on an already deleted QHttpNetworkConnection object. By converting an existing normal pointer to a QPointer we set it a 0-pointer and are safe. https://bugs.webkit.org/show_bug.cgi?id=36290 Reviewed-by: joao Reviewed-by: gabi
* QNAM HTTP: Do not use TCP_NODELAYMarkus Goetz2010-03-231-1/+8
| | | | Reviewed-by: thiago
* Stop QHostInfo thread pool when application is about to exitBradley T. Hughes2010-03-222-0/+4
| | | | | | | | | | Ensure that the threadpool QHostInfo uses internally has cleanup its threads when the application exits. This avoids the warning from QWaitCondition on Windows (which happens due to thread termination at application exit). Task-number: QTBUG-7691 Reviewed-by: mgoetz
* QNAM HTTP: Fix no-headers and HTTP-100 handlingMarkus Goetz2010-03-163-4/+17
| | | | Reviewed-by: Thiago
* QSslKey: Do not make OpenSSL prompt for a password on stdinMarkus Goetz2010-03-151-3/+1
| | | | | Task-number: QTBUG-2515 Reviewed-by: Andreas Aardal Hanssen
* QHostInfo: Compile fixMarkus Goetz2010-03-081-1/+1
| | | | Reviewed-by: TrustMe
* Document some stuff in QHostInfo and QAbstractSocketMarkus Goetz2010-03-042-0/+15
|
* DNS Cache: Also check inside the DNS threadsMarkus Goetz2010-03-041-6/+18
| | | | Reviewed-by: joao
* QNAM HTTP: Fix invoking a method when being destructed right nowMarkus Goetz2010-03-021-1/+5
| | | | Reviewed-by: Olivier Goffart
* QAbstractSocket: Use new faster DNS functionMarkus Goetz2010-03-021-2/+16
| | | | | | | Use qt_qhostinfo_lookup which avoids the event loop when the DNS result is already cached. Reviewed-by: Thiago
* Add DNS caching to QHostInfoMarkus Goetz2010-03-022-7/+154
| | | | | | By default enabled, but it can be disabled via a compile flag. Reviewed-by: Thiago
* QHostInfo: Forgot to free some stuff on application exit.Markus Goetz2010-03-011-0/+5
| | | | Reviewed-by: TrustMe
* QNAM HTTP: Switch back to QueuedConnection for requeueRequest.Markus Goetz2010-02-241-2/+16
| | | | Reviewed-by: Peter Hartmann
* QNAM HTTP: Set some values after clear() in a QHttpNetworkReplyMarkus Goetz2010-02-241-0/+2
| | | | Reviewed-by: TrustMe
* QNetworkAccessManager: Documentation enhancementsMarkus Goetz2010-02-241-1/+8
| | | | | Reviewed-by: Peter Hartmann Reviewed-by: David Boddie
* QAbstractSocket: Clarify documentationMarkus Goetz2010-02-221-2/+8
| | | | Reviewed-by: Thiago