View Single Post
Old 09-04-2008, 06:29 PM   #18
derrell
Jack O' Apes
derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.
 
derrell's Avatar
 
Posts: 227
Karma: 1939
Join Date: Dec 2007
Location: Oklahoma
Device: Ebookwise 1150, Nokia N810, EZ-Reader, HTC Droid Incredible, Archos 70
eb1150 is connecting to 127.0.0.1:9090

I was looking at the code in proxy1150.cpp and this looks like it should prevent any data that is 0 bytes being sent. Once it finds the end of the string it should close the socket, I think. Maybe some of the data coming out of impserve isn't null terminated.
Code:
      if (data.length() > 0) {

	// Parse and dispatch to the proxy methods      
	if (data.find("gethostbyname") != string::npos) {

	  gethostbyname(data);

	} else if (data.find("socket") != string::npos) {

	  socket(data);

	} else if (data.find("connect") != string::npos) {
	  
	  connect(data);

	} else if (data.find("send") != string::npos) {

	  send(data);

	} else if (data.find("recv") != string::npos) {
	
	  recv(data);

	} else if (data.find("close") != string::npos) {

	  close(data);

	} 
	
      }
derrell is offline   Reply With Quote