Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ MT-multithreading and servers » SSL server crash
SSL server crash [message #33725] Thu, 08 September 2011 16:33 Go to previous message
Zbych is currently offline  Zbych
Messages: 326
Registered: July 2009
Senior Member
Hi,

I have a problem with a simple SSL server on linux. After connecting a few clients (for example 5), I start killing them one by one. Server should just close connections, but it crashes inside SetSockError:

void Socket::SetSockError(SOCKET socket, const char *context, int code, const char *errdesc)
{
	String err;
	errorcode = code;
	if(socket != INVALID_SOCKET)
		err << "socket(" << (int)socket << ") / ";
	err << context << ": " << errdesc;
	errordesc = err; //<------------ crash
	is_error = true;
	SetErrorText(err);
}


The question is what I am doing wrong? Maybe I shouldn't use vector in two different threads without protection?
  • Attachment: SockVect.cpp
    (Size: 2.39KB, Downloaded 382 times)

[Updated on: Thu, 08 September 2011 18:23]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: A new function to Web Package Unicode-Escape-Javascript -> Unicode
Next Topic: Multi-Thread Critial Section Problem
Goto Forum:
  


Current Time: Sun May 05 22:59:38 CEST 2024

Total time taken to generate the page: 0.02406 seconds