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++ Core » HttpRequest issue (the TimeOut doesnot working)
HttpRequest issue [message #46930] Thu, 22 September 2016 11:10 Go to next message
akebee is currently offline  akebee
Messages: 90
Registered: August 2011
Location: China
Member
Here is my code, the request may often blocking all the time even if i set the ReqeusetTimeOut to 30 seconds.
How can i set the timeout to prevent request blocking? Confused
			HttpRequest req(url);
			req.RequestTimeout(30 * 1000);
			req.Execute();
Re: HttpRequest issue [message #46942 is a reply to message #46930] Sun, 25 September 2016 20:54 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13032
Registered: November 2005
Ultimate Member
Well, too little details provided I am afraid...

Can you please provide info about OS (Linux/Win32) and, ideally, some url where timeout fails?

Mirek
Re: HttpRequest issue [message #46945 is a reply to message #46942] Mon, 26 September 2016 04:26 Go to previous messageGo to next message
akebee is currently offline  akebee
Messages: 90
Registered: August 2011
Location: China
Member
hi, i found that it is because i built it in Visual Studio,for some reason i move all of the Core package to Visual Studio.
when i change back to TheIDE the HttpRequest returned to normal. Smile
now i am not dare to use U++ in Visual Studio...

[Updated on: Mon, 26 September 2016 04:28]

Report message to a moderator

Re: HttpRequest issue [message #46946 is a reply to message #46945] Mon, 26 September 2016 08:47 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13032
Registered: November 2005
Ultimate Member
Interesting.

How have you "moved" it?

Were you using Core/SSL?

Mirek
Re: HttpRequest issue [message #46947 is a reply to message #46946] Mon, 26 September 2016 09:14 Go to previous message
akebee is currently offline  akebee
Messages: 90
Registered: August 2011
Location: China
Member
I simply copy all of the Core files,and add into vs project,
i am using Core/SSL but the url is not https.

There also a problem in theIDE , only in DEBUG mode it shows
error C2208: "boost::asio::detail::winsock_init<2,0>" no members defined using this type.

that`s why i choose Visual Studio at the beginning.
I think some header files conflict with boost::aiso in TheIDE ,but i dont know how to solve it.
Previous Topic: Vector(const Vector& v, int)
Next Topic: Xmlize - need help
Goto Forum:
  


Current Time: Mon Jan 18 01:41:57 CET 2021

Total time taken to generate the page: 0.02550 seconds