FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

HttpClient "Error: truncated response" Fix

 
Post new topic   Reply to topic     Forum Index -> Mango
View previous topic :: View next topic  
Author Message
bbukowski



Joined: 21 Jan 2007
Posts: 1

PostPosted: Sun Jan 21, 2007 3:46 pm    Post subject: HttpClient "Error: truncated response" Fix Reply with quote

Hi,

setting tv.tv_usec to more than 1000000 does not work on my Linux Box.
HttpClient try's to set it to 3000000 and so select returns immediately.

Boris


Index: mango/io/Socket.d
===================================================================
--- mango/io/Socket.d (revision 935)
+++ mango/io/Socket.d (working copy)
@@ -884,8 +884,8 @@

void setTimeout (uint us)
{
- tv.tv_sec = 0;
- tv.tv_usec = us;
+ tv.tv_sec = us / 1000000;
+ tv.tv_usec = us ? 1000000;
}

/***********************************************************************
Back to top
View user's profile Send private message
kris



Joined: 27 Mar 2004
Posts: 1494
Location: South Pacific

PostPosted: Mon Jan 22, 2007 1:45 pm    Post subject: Reply with quote

thank you!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Mango All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group