Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Qt UI Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Design Studio
QML Viewer Projects
Qt UI Viewer
Commits
7cd5bca9
Verified
Commit
7cd5bca9
authored
3 months ago
by
Burak Hançerli
Browse files
Options
Downloads
Patches
Plain Diff
chore: add a bit of log to help to debug connection issues
parent
54bf60a8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!72
Disconnect immediately when the app is put to sleep (or sent to background)
Pipeline
#78831
passed
3 months ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/backend/dsconnector/ds.cpp
+6
-0
6 additions, 0 deletions
src/backend/dsconnector/ds.cpp
with
6 additions
and
0 deletions
src/backend/dsconnector/ds.cpp
+
6
−
0
View file @
7cd5bca9
...
@@ -67,6 +67,12 @@ void DesignStudio::initPingPong()
...
@@ -67,6 +67,12 @@ void DesignStudio::initPingPong()
&
QWebSocket
::
pong
,
&
QWebSocket
::
pong
,
this
,
this
,
[
this
](
quint64
elapsedTime
,
const
QByteArray
&
)
{
[
this
](
quint64
elapsedTime
,
const
QByteArray
&
)
{
if
(
elapsedTime
>
1000
)
qWarning
()
<<
"Design Studio pong is too slow:"
<<
elapsedTime
<<
"ms. Newtork issue?"
;
else
if
(
elapsedTime
>
500
)
qWarning
()
<<
"Design Studio pong is slow:"
<<
elapsedTime
<<
"ms"
;
m_pongTimer
.
stop
();
m_pongTimer
.
stop
();
m_pingTimer
.
start
();
m_pingTimer
.
start
();
});
});
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment