Issue with writing to QValueSpaceItem
Hello,
I have an issue. Writing to QValueSpaceItem is very slow as if something has blocked the executing. Here is the code:
void QCommDeviceController_Private::bringUp()
{
if (!m_sock)
return;
m_sock->write("UP\r\n");
}
There is no contentChanged signal for a long time.
Is there anyone having the same issue? How to fix it?
Re: Issue with writing to QValueSpaceItem
Make sure the socket (m_sock) is in a valid state before calling write. The write function does not perform the write immediately, instead among us queues it into the event loop.
Re: Issue with writing to QValueSpaceItem
You may also need to call flush() to force the buffer to actually be written to the socket.