Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QUdpSocket::writeDatagram() shouldn't be used on connected socket #1279

Open
ctrlaltdavid opened this issue Jul 4, 2021 · 3 comments
Open
Labels
bug Something isn't working Severity: Medium Important functionality is affected, but a workaround exists stale Issue / PR has not had activity

Comments

@ctrlaltdavid
Copy link
Collaborator

qint64 Socket::writeDatagram(const QByteArray& datagram, const HifiSockAddr& sockAddr) {
    ...
    qint64 bytesWritten = _udpSocket.writeDatagram(datagram, sockAddr.getAddress(), sockAddr.getPort());
    ...

According to Qt documentation, writeDatagram() shouldn't be used if the UDP socket is connected, possibly resulting in no packet being sent.
https://doc.qt.io/qt-5/qudpsocket.html#writeDatagram

@ctrlaltdavid ctrlaltdavid added the bug Something isn't working label Jul 4, 2021
@daleglass daleglass added the Severity: Medium Important functionality is affected, but a workaround exists label Jul 10, 2021
@stale
Copy link

stale bot commented Jan 6, 2022

Hello! Is this still an issue?

@stale stale bot added the stale Issue / PR has not had activity label Jan 6, 2022
@ctrlaltdavid
Copy link
Collaborator Author

Yes, this is still an issue.

@stale stale bot removed the stale Issue / PR has not had activity label Jan 22, 2022
@stale
Copy link

stale bot commented Jul 22, 2022

Hello! Is this still an issue?

@stale stale bot added the stale Issue / PR has not had activity label Jul 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Severity: Medium Important functionality is affected, but a workaround exists stale Issue / PR has not had activity
Projects
None yet
Development

No branches or pull requests

2 participants