Update: UltraVNC 1.4.3.6 and UltraVNC SC 1.4.3.6: viewtopic.php?t=37885
Important: Please update to latest version before to create a reply, a topic or an issue: 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
- Facebook: https://www.facebook.com/ultravnc1
- X/Twitter: https://twitter.com/ultravnc1
- Reddit community: https://www.reddit.com/r/ultravnc
- OpenHub: https://openhub.net/p/ultravnc

SCIII Repeater SSL Source Code?

SC <-> Proxy <-> Repeater <-> Proxy <-> Viewer
Post Reply
dimaxp
8
8
Posts: 8
Joined: 2007-01-14 06:08
Location: Seattle, WA

SCIII Repeater SSL Source Code?

Post by dimaxp »

Hi,

I am unable to find the source code for the repeater SSL, I have sent a PM to Rudi and have not received a response. The repeater is crashing every ten connections or so, I want to diagnose it, which is only possible with source code. If anyone can PM me a link or help me find it, I would appreciate it.

Thank you,
dimaxp
IlikeUVNC
Posts: 6
Joined: 2006-05-12 13:02
Location: Switzerland

Re: SCIII Repeater SSL Source Code?

Post by IlikeUVNC »

Hi dimaxp,

this is not exactly the answer to your question but a hint on how to use ssl repeater without crashes.
Just start repeater as a service and not as an application.
I run it as a service since months without any problems.

Regards,
Werner
dimaxp
8
8
Posts: 8
Joined: 2007-01-14 06:08
Location: Seattle, WA

Re: SCIII Repeater SSL Source Code?

Post by dimaxp »

Rudi has sent me the source for the repeater, thanks Rudi!

It is quite interesting that it runs better as a service rather than as a GUI server. Possibly permission issues or maybe the GUI code has problems, either way it will be interesting to see what piece of the code crashes it.

Thanks for the suggestion by the way,
dimaxp
redge
1000
1000
Posts: 6797
Joined: 2004-07-03 17:05
Location: Switzerland - Geneva

Re: SCIII Repeater SSL Source Code?

Post by redge »

either way it will be interesting to see what piece of the code crashes it.
Hope you send the update/fix you had found for improve repeater
UltraVNC 1.0.9.6.1 (built 20110518)
OS Win: xp home + vista business + 7 home
only experienced user, not developer
dimaxp
8
8
Posts: 8
Joined: 2007-01-14 06:08
Location: Seattle, WA

Re: SCIII Repeater SSL Source Code?

Post by dimaxp »

Well so far I have found that GUI log file generation causes the repeater to crash. Eventually it accesses memory that it shouldn't. I am trying to fix it right now. I will make the revised code available if I fix it.

This does however explain why running it as a service would make it more stable. Running as service never loads the GUI, thus it never has a chance to crash.

Regards,
dimaxp
dimaxp
8
8
Posts: 8
Joined: 2007-01-14 06:08
Location: Seattle, WA

Re: SCIII Repeater SSL Source Code?

Post by dimaxp »

Ok, an update on progress.

The GUI log was doing some funky incremental memory allocation and would crash. I replaced most of it with an ostringstream and copied it back to the buffer. It no longer crashes the program.

But, there is another problem. sslConn_t is often freed and another method tries to access it, causing it to crash. I have made sure it gets nulled out (I think), but that doesn't help. It probably is a threading issue. For the life of me, I haven't been able to figure out where the issue is. The problem can be triggered consistently by making many connections with javaviewer to the repeater. It will crash due to conn having a bad memory address, it won't be NULL.

I have found an unreliable fix, which entails moving the free(conn) statement from sslFreeConnection() into the destructor of TCPTunnelServer. It is unreliable since a sleep(5000) is needed in front of the free(conn) statement to wait for other functions to finish, otherwise it crashes on socket shutdown. Given different processors or stuck/slow operations, it may crash.

If anyone has any ideas, I would appreciate it.

Thanks,
dimaxp
Yod4z
20
20
Posts: 55
Joined: 2006-10-18 15:08

Re: SCIII Repeater SSL Source Code?

Post by Yod4z »

is there any progress on this repeater SSL or the 1.2.2.1 repeater support SSL?
magic_man
Posts: 1
Joined: 2007-03-08 23:07

Re: SCIII Repeater SSL Source Code?

Post by magic_man »

I'm looking at making some modifications to the SSL repeater for our in-house support system. I need to be able to track and allow/disallow specific ID's. Could somebody point me to the right place for the source code? Thanks in advance.
bevtech
800
800
Posts: 2168
Joined: 2005-08-03 14:07
Location: Pennsylvania, United States

Re: SCIII Repeater SSL Source Code?

Post by bevtech »

That maybe down already. I do recall a user that has that patch for tracking done.. did you do a search for that topic..


Source code for the Repeater III would probably be a PM to Rudi De Vos but he is not at town right now.. So it maybe a few weeks before he gets back to you..
Bevtech

Windows XP Home, Pro SP2, Windows 2003 SBS server SP2(EN), Windows Media Center Editon 2005,Windows Vista Home Prem.,Fedora Core 6,Win9X, PChelpware Rel 1.0,
UVNC V 1.0.8.2

User not developer..;)
Post Reply