Celebrating the 22th anniversary of the UltraVNC: https://forum.uvnc.com/viewtopic.php?t=38031
Update: UltraVNC 1.4.3.6 and UltraVNC SC 1.4.3.6: https://forum.uvnc.com/viewtopic.php?t=37885
Important: Please update to latest version before to create a reply, a topic or an issue: https://forum.uvnc.com/viewtopic.php?t=37864

Join us on social networks and share our announcements:
- Website: https://uvnc.com/
- GitHub: https://github.com/ultravnc
- Mastodon: https://mastodon.social/@ultravnc
- Bluesky/AT Protocol: https://bsky.app/profile/ultravnc.bsky.social
- Facebook: https://www.facebook.com/ultravnc1
- X/Twitter: https://x.com/ultravnc1
- Reddit community: https://www.reddit.com/r/ultravnc
- OpenHub: https://openhub.net/p/ultravnc

Bug or еrror Repeater

Post Reply
Nick_od
40
40
Posts: 80
Joined: 2013-09-04 06:42

Bug or еrror Repeater

Post by Nick_od »

Greetings.
I ran the test Repeater. at 50-100 UltraVNC servers.
Windows server 2003 "repeater webgui 2013"
Found a bug or a programming error.
This problem occurs 1-2 times a day.
The program does not show the error and continues to work.
But realistically, the program is not working properly.

The problem is that the thread is not closed and remains in memory.
The server shows that the connection is broken, but the connection is not physically closed.
The server can not create a new thread, because the previous thread is not complete close.


Here are my pictures I hope you'll understand what I'm trying to show you.
http://imageshack.us/photo/my-images/59/rclq.png/
http://imageshack.us/photo/my-images/29/lq9t.png/
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6890
Joined: 2004-04-23 10:21
Contact:

Re: Bug or еrror Repeater

Post by Rudi De Vos »

I see what i can do, finding threading bug isn't simple to debug.
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6890
Joined: 2004-04-23 10:21
Contact:

Re: Bug or еrror Repeater

Post by Rudi De Vos »

Is it while viewers are connected or while the server is waiting ?
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6890
Joined: 2004-04-23 10:21
Contact:

Re: Bug or еrror Repeater

Post by Rudi De Vos »

300 sec server reset ( indeed there is a reset in the code) set to 3000
initiate shutdown before closesocket, this should send a message to the other site that the socket is closed.
100% cpu spike, some loop while socket is closed but not found yet.

http://www.uvnc.eu/1193/repeater_Okt2013.zip
Nick_od
40
40
Posts: 80
Joined: 2013-09-04 06:42

Re: Bug or еrror Repeater

Post by Nick_od »

Hi Rudi.
Thanks for the quick response
. 8)
Rudi De Vos wrote:Is it while viewers are connected or while the server is waiting ?
This occurred in both cases. :(

I started testing a new version. :thumbs:
Rudi De Vos wrote:300 sec server reset ( indeed there is a reset in the code) set to 3000
initiate shutdown before closesocket, this should send a message to the other site that the socket is closed.
100% cpu spike, some loop while socket is closed but not found yet.

http://www.uvnc.eu/1193/repeater_Okt2013.zip
You're writing a UltraVNC server connected to 300 sec and and then reconnect. (worked as an older version)

Now, in new version UltraVNC server connected to the Repeater for 3000 sec.
But I'm testing the UltraVNC server connected to Repeater for more than 3 hours, and did not disconnected and then reconnected.
Perhaps there is an error in the timer?
http://imageshack.us/photo/my-images/706/i2y7.png/

This, of course, great, but one reconnection of one hour or 30 min would be even better. (I think so :wink: )
I will test the new version until Monday. And then write the results.
Thanks for the quick help.
:D
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6890
Joined: 2004-04-23 10:21
Contact:

Re: Bug or еrror Repeater

Post by Rudi De Vos »

Cleanup is now done
*server/viewer is waiting > 50 minutes
*number of free spots < 100 ( the repeater has 1000 free spots, each server that's connected or waiting use 1 spot)

Yes, the server can be wating for hours if he isn't heavy used and free sots >100
Nick_od
40
40
Posts: 80
Joined: 2013-09-04 06:42

Re: Bug or еrror Repeater

Post by Nick_od »

Hi Rudi.
I tested Repeater.
Errors or failures occurred.
But seen situations where Repeater does not close the connection Ultravnc server correctly.
Repeater indicates that the Ultravnc server is connected. But in reality it is not.
http://imageshack.us/photo/my-images/824/ep5v.png/

I found a greater number of non-closed connections.
"CLOSE_WAIT"
These connections are more and more...
http://imageshack.us/f/35/6bta.png/
http://imageshack.us/f/266/yd4c.png/

Rudi I need more> 100 slots in repeater
You can increase the amount of up to> 500

thank you
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6890
Joined: 2004-04-23 10:21
Contact:

Re: Bug or еrror Repeater

Post by Rudi De Vos »

It has already 1000 slots.
The <100 free slots trigger the cleanup.
Nick_od
40
40
Posts: 80
Joined: 2013-09-04 06:42

Re: Bug or еrror Repeater

Post by Nick_od »

It has already 1000 slots.
The <100 free slots trigger the cleanup.
I wanted to say.
I need "The <500 free slots trigger the cleanup"

And what about the "CLOSE_WAIT" this is not normal.
Post Reply