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

bugtracker at gambaswiki.org bugtracker at gambaswiki.org
Tue Feb 27 02:29:58 CET 2018


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

Comment #20 by Benoît MINISINI:

OK, this is the expected error, as the gb.net code always closes the socket stream as soon any error is encountered. Then the Socket raises an Error event at the next event loop. Can you check the error status of the socket just after the error?

But I still don't see where the socket "never want to close". It is already closed by the error!

Anyway, I don't know why that code was written that way. There should be no reason for closing the socket after an error. And I think you cannot reuse the socket anymore, and have to create a new socket to continue the communication.




More information about the User mailing list