Getting SocketError 'LocalSocket::connectToServer: Invalid name' for ''
-
Hello,
I am totally new to QT and working on one issue which is related to socket error.
We are actually creating the local socket for integration test.
While running the integration test, we are getting the below socket error.
SocketError 'LocalSocket::connectToServer: Invalid name' for ''
Could not connect local socket.
Could not set up shared ring buffer.
Unable to push data into SharedBuffer 8Please help me to understand this issue.
-
Hello,
I am totally new to QT and working on one issue which is related to socket error.
We are actually creating the local socket for integration test.
While running the integration test, we are getting the below socket error.
SocketError 'LocalSocket::connectToServer: Invalid name' for ''
Could not connect local socket.
Could not set up shared ring buffer.
Unable to push data into SharedBuffer 8Please help me to understand this issue.
Please show the code. Are you using an empty string as server name?
-
I dont think server name is empty.
I found https://bugreports.qt.io/browse/QTCREATORBUG-17945 while searching about this error.
in one of the comment, they have mentioned about timing issue.
https://bugreports.qt.io/browse/QTCREATORBUG-17945?focusedCommentId=352607&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-352607if its timing related issue where pipe name is not yet constructed completely and at that time it's trying to call the connectToServer then it will throw an error.
If my understand is correct, then what can we do to resolve this error?