Re: [Flightgear-devel] FG_SERVER::Loop() - Bytes = 0!

2012-03-09 Thread Geoff McLane
Hi Roland,

Maybe Oliver can add more... but -

1: I am working with the version in my own clone of 
master, geoffmcls-fgms-0-x, but it is the SAME in 
that code area.

In a recent test setup I too was 'flooded' with 
this particular message. That turned out to be 
due to port 5000 udp in/out, and/or port 5001 tcp 
in/out had NOT been enabled on that machine...

Maybe Yves could explain what he needed to do 
to change that...

And even after the change still get some of these 
message from a telnet queries...

So that is one thing to look at...

2: The only recent (September 27 2011) change to that 
code was -
-if (! Bytes)
+if ( Bytes = 0 )
 {
SG_ALERT (SG_SYSTEMS, SG_ALERT,
 FG_SERVER::Loop() - Bytes = 0!);
continue;

That is changing the if test from just !Bytes, which is 
Bytes == 0, to Bytes = 0, to reflect what the SG_ALERT 
states.

Maybe if you change that back to if (! Bytes) you would get
'less', or no SG_ALERT messages to the log, but that does 
not deal with the reason for the 'select' -
  Bytes = m_DataSocket-select (ListenSockets,0,m_PlayerExpires);
returning -1, an ERROR.

And if you added strerror(errno) to the SG_ALERT, like say -

SG_ALERT (SG_SYSTEMS, SG_ALERT,
   FG_SERVER::Loop() - Bytes = 0!   
   Bytes   errno   errno   msg   
   strerror(errno) );

you would be able to also see the specific error returned 
by select(), and maybe deal with it...

HTH,

Regards,
Geoff.

On Thu, 2012-03-08 at 21:55 +0100, Roland Häder wrote:
 Hi,
 
 I get this message flooded into fgms.log file with latest master. Can you 
 please take a look?
 
 Regards,
   Roland
 



--
Virtualization  Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


[Flightgear-devel] FG_SERVER::Loop() - Bytes = 0!

2012-03-08 Thread Roland Häder
Hi,

I get this message flooded into fgms.log file with latest master. Can you 
please take a look?

Regards,
  Roland

-- 
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de

--
Virtualization  Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel