Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QTcpSocket bytesToWrite permanent increasing
QtWS25 Last Chance

QTcpSocket bytesToWrite permanent increasing

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 822 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Milovidov
    wrote on last edited by
    #1

    Hello all!

    I have two devices that are based on blackfin processor and with also compiled by hand via buildroot utility, linux OS. With OS also compiled Qt 4.8.5.
    I need to send approximetly 64 kbytes per second via ethernet device with 100mbps interface.
    I have problem with slow speed of QTcpSocket. BytesfToWrite increasing permanently, rising up to 30 mb, and then my app recieved segmentation fault, because not exist enouth memory.
    The next things that I did for resolving this problem, but this did't has positive result:

    1. I measured the speed via netcat utility "such as here":http://deice.daug.net/netcat_speed.html . The Measured speed is 500 kbytes per second, but I need to send only 64 kbytes per second
    2. I didn't see dependence from package size - small or big the bytesToWrite increasing in both cases.
    3. I set QAbstractSocket::LowDelayOption to 0 or 1, but with no effects.
    4. If I calling waitForBytesWritten(-1), the bytesToWrite not growing, but this function work very long time, and I can't call this.
    5. Calling flush() has no effects.

    As I understand, the problem that QTcpSocket writing slowly when I adding new data. But, is exist any ways for incresing writing speed?

    Thank you for attention!

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved