Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
6 posts • Page 1 of 1
6 posts
• Page 1 of 1
flindecke
Posts:69
Joined: Wed Jun 24, 2015 1:54 pm
Writing file is slow if and only if VPN connection is established => seems to be call to getCurrentOSUser (obsolete!) => use getOS* functions
Postby flindecke »
I am currently working outside of my office. So i am connected via VPN from my current place (a very strong 6Mbit connection ) to my office.
Whenever i try to write a file to disk via CTRL code, the execution will take minutes, without any actions. When i close the VPN connection, everything works in seconds (roughly 1-2 Seconds which is acceptable).
Did anyone noticed this behavior when reading or writing files before?
I am writing to a local SSD which should be fast enough.
@ETM: Are there any network request, when a file is written do disc?
Re: Writing file is slow if and only if VPN connection is established
Postby flindecke »
Das Problem scheint nicht das Datei schreiben zu sein, sondern der Zugriff auf getCurrentOSUser.
Hier scheint sehr viel Netzwerkverkehr zu sein, wenn der Rechner in einer Domäne ist und der Rechner über VPN und "langsame" Verbindung angebunden ist.
Re: Writing file is slow if and only if VPN connection is established
Postby leoknipp »
The function getCurrentOSUser is marked as obsolete function. If you want to read user specific information other functions can be used.
Please check your script which is using this function.
Best Regards
Leopold Knipp
Senior Support Specialist
Re: Writing file is slow if and only if VPN connection is established
Postby flindecke »
Hello Leopold Knipp,
thanks for the note. I did not noticed the "obsolete" sentence in the help documentation.
My proposal for future versions of WinCC OA. Declare these methods obsolete, and whenever a control developer uses such function, a notification is displayed to the user (e.g. in the little function signature tooltip in GEDI code editor).
Furthermore those functions should be presented more prominently with a BIG, BIG, i mean really BIG warning.