Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - Socket deconnection: Page 1 of 3 (3 Items)
   
Socket deconnection  
Hi
I have to manage a very busy socket in a client connection

I detect disconnection by testing the return value of the send() function 
int size_written = send( fd, .... , ....);
then i test the errno variable
	if (errno == ECONNRESET || errno == EPIPE)
	{
		fd = CODE_SOCKET_CLOSE;
		return CODE_DECONNEXION;
	}

The socket is used both in a thread for reading and 2 timers for writing

It work but when the socket trafic is increased and a server deconnection occured, for an unknown reason the the process
 is stopped. There is no error and no core dump. It's like an exit function call

 Thank for your answer