n_oikonomidis Posted November 19, 2004 Report Share Posted November 19, 2004 Dear Pete, you have heard it lots of times however allow me at first to express my gratitude for the great utilities you provide to the FS community :) Now to my little problem. I have tried the new feature of AutoShutdown and it doesn't work for my configuration. Strange though, since when the Shutdown is forced by Hotkey the client shuts down normally. "Wideserver.ini" contains : Autoshutdown=Yes ShutdownHotKey=69,11 "Wideclient.ini" contains: AllowShutdown=App Folllowing, the logs I get from the server and the client for the case where everything goes well (i.e. Shutdown forced by Hotkey) and then the logs where Autoshutdown fails. Thanks in advance for your help, Nikolaos Oikonomidis ********* WideServer.DLL Log [version 6.41] ********* Blocksize guide = 4096 (double allowed) Date (dmy): 19/11/04, Time 18:44:53.640: Server name is FERMAT 25390 Initialising TCP/IP server 25390 Initialising IPX/SPX server 25390 IPX/SPX socket() failed [Error=10047] Address family not supported by protocol family 25390 Failed to start IPX/SPX Server 36656 Restarting service due to total lack of use 36656 IPX/SPX socket() failed [Error=10047] Address family not supported by protocol family 36656 Failed to start IPX/SPX Server 47687 Incoming connection Accepted ok (skt=2816) 47719 Connected to computer "AIKEN" (skt=2816) 55953 Shutdown broadcast requested by hotkey! 56015 Shutdown request received! 157500 Auto-shutdown broadcast! 157500 Error 10053: client socket disconnected at Client: removing (skt=2816) 157500 Closing down now ... Memory managed: Offset records: 7 alloc, 7 free Throughput maximum achieved: 1 frames/sec, 32 bytes/sec Throughput average achieved for complete session: 0 frames/sec, 0 bytes/sec ********* Log file closed ********* ********* WideClient.DLL Log [version 6.41] Class=FS98MAIN ********* Date (dmy): 19/11/04, Time 18:47:29.822: Client name is AIKEN 491 Attempting to connect now 521 Connection made okay! 8853 Shutdown request received! 9754 Reception maximum achieved: 1 frames/sec, 33 bytes/sec 9754 Reception average achieved whilst connected: 0 frames/sec, 28 bytes/sec 9754 Max receive buffer = 65, Max send depth = 0 9754 ********* Log file closed (Buffers: MaxUsed 1, Alloc 11 Freed 11 Refused 0) ********* ============================================= ********* WideServer.DLL Log [version 6.41] ********* Blocksize guide = 4096 (double allowed) Date (dmy): 19/11/04, Time 18:48:37.734: Server name is FERMAT 27094 Initialising TCP/IP server 27094 Initialising IPX/SPX server 27094 IPX/SPX socket() failed [Error=10047] Address family not supported by protocol family 27094 Failed to start IPX/SPX Server 33000 Incoming connection Accepted ok (skt=2904) 33016 Connected to computer "AIKEN" (skt=2904) 50938 Auto-shutdown broadcast! 50938 Closing down now ... Memory managed: Offset records: 7 alloc, 7 free Throughput maximum achieved: 1 frames/sec, 32 bytes/sec Throughput average achieved for complete session: 0 frames/sec, 1 bytes/sec ********* Log file closed ********* ********* WideClient.DLL Log [version 6.41] Class=FS98MAIN ********* Date (dmy): 19/11/04, Time 18:50:59.173: Client name is AIKEN 511 Attempting to connect now 551 Connection made okay! 27840 Error on recv() [Error=10054] Connection reset by peer 27840 Error on client post-Connection Select() [Error=10053] Software caused connection abort 27850 Ready to try connection again 27900 Attempting to connect now 43372 Reception maximum achieved: 0 frames/sec, 19 bytes/sec 43372 Reception average achieved whilst connected: 0 frames/sec, 7 bytes/sec 43372 Max receive buffer = 65, Max send depth = 0 43372 ********* Log file closed (Buffers: MaxUsed 1, Alloc 20 Freed 20 Refused 0) ********* Link to comment Share on other sites More sharing options...
Pete Dowson Posted November 19, 2004 Report Share Posted November 19, 2004 Now to my little problem. I have tried the new feature of AutoShutdown and it doesn't work for my configuration. Strange though, since when the Shutdown is forced by Hotkey the client shuts down normally. With the hotkey shutdown, WideServer (and therefore FS) is kept running for many seconds after the keypress to make sure all clients see it. With the "auto shutdown", WideServer sends the shutdown notification out to the Clients as a last block before terminating -- it does not try to hold off FS from closing for long. From your logs, I think the problem is that the performance is so poor (!) that the message about the shutdown isn't read by the Client before the link disappears: Server: Throughput maximum achieved: 1 frames/sec, 32 bytes/secThroughput average achieved for complete session: 0 frames/sec, 1 bytes/sec Client: 43372 Reception maximum achieved: 0 frames/sec, 19 bytes/sec 43372 Reception average achieved whilst connected: 0 frames/sec, 7 bytes/sec Average LESS than 1 frame per second! And you have no client applications running at all. What is it going to close? It all works 100% here on all sorts of different Client PCs. If you can tell me how to reproduce this, I will try to do so, but please run some client applications. With "AllowShutdown=App" in the Client's INI all it will try to do is close the applications in any case, and you don't have any running! Regards, Pete Link to comment Share on other sites More sharing options...
n_oikonomidis Posted November 19, 2004 Author Report Share Posted November 19, 2004 I should have posted the whole WideClient.ini and Wideserver.ini, sorry for that. I actually run three applications (see below). I ran a test only with FSMeteo and got failure again. (The other two apps are the new IVAO online client framework and its interface). No other apps are running except from these three and the wideclient. Regarding the low framerates, they were to expect, since - as you mention in the documentation - the FS was actually not doing much when these logs have been recorded (loaded standard startup situation and closed the FS). Otherwise, the fps I get on the client are close to the ones from the FS. Server PC: P4, 2Ghz, 512 MB RAM, WinXP Client PC: P3, 500Mhz, 256 MB RAM, Win2000 Regards, Nikolaos ===WideClient.ini=== [Config] UseTCPIP=Yes ServerIPAddr=192.168.1.2 Port=8002 Window=43,44,112,27 Visible=Min ButtonScanInterval=20 ClassInstance=0 NetworkTiming=5,1 PollInterval=2000 ResponseTime=18 Timeout=12 TCPcoalesce=No WaitForNewData=500 [user] Run1=C:\DLs\FSAddons\fsmeteo\fs_meteo.exe Run2=C:\Programme\IVAO\IvAp\ivap.exe Run3=C:\Programme\IVAO\IvAp\usrhost.exe Close1=Yes Close2=Yes Close3=Yes AllowShutdown=App Log=Errors+ ===WideServer.ini=== [Config] Port=8002 AutoRestart=0 AutoUpdateTime=13 MaximumBlock=4096 NoStoppedRestarts=Yes RestartTime=10 SendTimeout=15 TCPcoalesce=No ; ----------------------------------------------- [user] RestartHotKey=78,11 AutoShutdown=Yes ShutdownHotKey=69,11 Log=Errors+ ; =============================================== [ClientNames] 1=AIKEN Link to comment Share on other sites More sharing options...
Pete Dowson Posted November 19, 2004 Report Share Posted November 19, 2004 the FS was actually not doing much when these logs have been recorded (loaded standard startup situation and closed the FS). Otherwise, the fps I get on the client are close to the ones from the FS. And are you saying that the auto-shutdown option never works, even then? I really would need to be able to reproduce this to do much about it. the facility is very simply, it merely sends a frame out to all clients before closing. I wonder if your Client having Win2000 running on it has anything to do with it? I have one of those here some where, but I won't be able to try it till next week. Regards, Pete Link to comment Share on other sites More sharing options...
Pete Dowson Posted November 20, 2004 Report Share Posted November 20, 2004 One further question: how are you closing FS? I think that may make a difference too. My normal way is by ALT F X, effectively the "exit" entry in the Flights menu. I think methods like Ctrl-Break, Ctrl-C and pressing the "X" close button may be bypassing some of the code. I'm not sure of this, but please experiment and let me know. I may also ask you to turn on some logging so I can see in detail what the Client is and is not getting. Regards, Pete Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now