[Gambas-user] [Gambas Bug Tracker] Bug #752: Gambas shows - gbx3: warning: trying to watch fd #-1
bugtracker at ...3416...
bugtracker at ...3416...
Sun Sep 20 19:35:19 CEST 2015
http://gambaswiki.org/bugtracker/edit?object=BUG.752&from=L21haW4-
Alexander KUIPER reported a new bug.
Summary
-------
Gambas shows - gbx3: warning: trying to watch fd #-1
Type : Bug
Priority : Medium
Gambas version : Unknown
Product : Unknown
Description
-----------
Gambas3 3.8.1 (and trunk) will give this message in the console on Pi2 and Cubieboard when the ServerSocket is used and other side closes the connection earlier then our side. Only x86/x86_64 this message isn't seen, so most likely a timing issue?
The reproduction scenario on Pi2 is as follows:
- Create a ServerSocket
- The ServerSocket passes it as a Socket, when somebody connects
- Socket is handling input/output
- Remote closes the connection via the normal TCP/IP FIN
- The message "gbx3: warning: trying to watch fd #-1" is sometimes shown on the console
An important note:
- If Gambas closes the Socket before the client disconnects, no error/message is ever shown
Looking into the gb.net/src/CSocket.c it looks Gambas closes the socket (on request of the client), BUT forgets set GB.Watch to none and this message is shown. It isn't shown always, so it looks like a timing issue.
More information about the User
mailing list