[Gambas-user] [Gambas Bug Tracker] Bug #1246: Segmentation Fault STREAM_write - gbr3

bugtracker at gambaswiki.org bugtracker at gambaswiki.org
Tue Mar 6 14:30:06 CET 2018


http://gambaswiki.org/bugtracker/edit?object=BUG.1246&from=L21haW4-

Comment #21 by Olivier CRUILLES:

After a long time dealing with this error of socket disconnection, it works now as expected and it's stable. When the socket have a disconnection (maybe the other side of the socket is busy or buffer full), I just close it and open a new one.

I have just find a little think that I need to add in my code and this is the declaration of AsConsumerSocket_Closed() event to correctly close the Socket. This one permit to receive information from the Socket Server that the Socket is Close or Busy. In the case of I permit receive this information instead of Close brutally the Socket client side, as described on Internet, the socket (server side) don't wait ~2 min before be closed by the kernel.
Does it make sense for you ?




More information about the User mailing list