|
From: Александр М. <am...@ma...> - 2010-07-21 09:53:26
|
Hello!
Sorry, I am not a developer, I am simply interesting on cpp-netlib library, but I was not found any support mailing list.
My questions are:
1) HTTP client and SSL. How I can compile client without HTTPS support (which adds dependency on openssl library). I try to define BOOST_NETWORK_NO_HTTPS, but it not work. I try to lookup in code for BOOST_NETWORK_NO_HTTPS or BOOST_NETWORK_HTTPS, but there is no occurences found.
Some https features found in boost\network\protocol\http\impl\sync_connection_base.hpp, but they are unconditional and can't be stripped.
2) cpp-netlib is hard C++ library, and I can't understand it.
I think that HTTP server (in sample) is serial (not a parallel) and handles requests consistently. Hard worker requests can easy get denial of service when incoming connection overfull connection accept queue. I am right? Is the way to make parallel server, which handles requess in different threads?
3) Is there way to stop client from other thread?
Such illustrated above:
-- worker thread --
client.get(); // client.post() etc
-------------------
-- GUI thread --
if (canceled && client.in_progress()) client.abort();
----------------
Or, may be there is the way to install callback which periodicaly receives client status events (such as "resolving", "connecting", "awaiting_reply") and can return value to signal that abort needed (true for continue, false to abort, as sample)
Or, may be client can be used in async mode such here:
client.get();
while( not canceled and client.in_progress() and not client.done()) {}
4) Is there the way to make secure (https) server?
Thank you for your attention,
Alex Martynov.
|