Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-82776

flaky test tst_QTcpSocket::increaseReadBufferSize(WithoutProxy SSL)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.12
    • Fix Version/s: 5.12.8
    • Component/s: Network
    • Labels:
    • Commits:
      e9ae7cf31ff304150692d470ef914ec4d08c818e (qt/qtbase/5.12)

      Description

      This test is flaky only on Windows and 5.12 branch AFAICT, so I'm setting the priority to low.

      http://coin.intra.qt.io/coin/api/results/qt/qtbase/e85a728c801760dc6955c39ff7e8a25a3242a803/WindowsWindows_10x86_64WindowsWindows_10x86_64MSVC2015qtci-windows-10-x86_64-10-ddff15/b489ffb7975e8b65c2e450122864cf77b5b6a3f6/test_1583756084/log.txt.gz

      agent:2020/03/09 16:14:56 build.go:253: FAIL!  : tst_QTcpSocket::increaseReadBufferSize(WithoutProxy SSL) Compared values are not the same
      agent:2020/03/09 16:14:56 build.go:253:    Actual   (active->bytesAvailable()): 512
      agent:2020/03/09 16:14:56 build.go:253:    Expected (active->readBufferSize()): 256
      agent:2020/03/09 16:14:56 build.go:253: ..\tst_qtcpsocket.cpp(2615) : failure location
      

      The code in question:

         2597     // connect two sockets to each other:
         2598     QVERIFY(server.listen(QHostAddress::LocalHost));
         2599     active->connectToHost("127.0.0.1", server.serverPort());
         2600     QVERIFY(active->waitForConnected(5000));
         2601     QVERIFY(server.waitForNewConnection(5000));
         2602 
         2603     QTcpSocket *passive = server.nextPendingConnection();
         2604     QVERIFY(passive);
         2605 
         2606     // now write 512 bytes of data on one end
         2607     QByteArray data(512, 'a');
         2608     passive->write(data);
         2609     QVERIFY2(passive->waitForBytesWritten(5000), "Network timeout");
         2610 
         2611     // set the read buffer size to less than what was written and iterate:
         2612     active->setReadBufferSize(256);
         2613     enterLoop(10);
         2614     QVERIFY2(!timeout(), "Network timeout");
         2615     QCOMPARE(active->bytesAvailable(), active->readBufferSize());
      

      How is it possible to have 512 bytes available when the buffer size is 256?

        Attachments

          Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Activity

              People

              Assignee:
              tpochep Timur Pocheptsov
              Reporter:
              jimis Dimitrios Apostolou
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes