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 » non-blocking socket.Write("test string") crash on linux [BUG?]
non-blocking socket.Write("test string") crash on linux [BUG?] [message #11116] Mon, 20 August 2007 20:45 Go to previous message
fudadmin is currently offline  fudadmin
Messages: 1321
Registered: November 2005
Location: Kaunas, Lithuania
Ultimate Contributor
Administrator
I haven't dived deep into sockets but just trying to help lectus on the other thread found that with non-blocking
socket.Write("test string");

crashes my program at /Web/socket.cpp ~line 290
int Socket::Data::Write(const void *buf, int amount)
{
	RLOG("Socket::Data::Write: stil alive. amount= " << socket); //aris002
	int res = send(socket, (const char *)buf, amount, 0);  //DIES HERE!!!
	RLOG("Socket::Data::Write: DEAD alive???. amount= " << amount); //aris002
	if(res == 0 || res < 0 && GetLastError() != IS_BLOCKED)
		SetSockError("send");
	return res;
}

Is this a bug in upp or in my knowledge?

[Updated on: Mon, 20 August 2007 20:47]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Previous Topic: using gates but program lags
Next Topic: Mutex locks vs copy constructors
Goto Forum:
  


Current Time: Sun Apr 28 19:28:41 CEST 2024

Total time taken to generate the page: 0.05670 seconds