It was the most obvious way to set the keepAlive of a request. I will move it to another place, however I have to distinguish between the two versions HTTPReply::setKeepAliveTimeout and this new type of configuration. Is there a version number I could use for that?

Am 03.12.2012 18:27, schrieb Tommi Mäkitalo:
Am 03.12.2012 13:56, schrieb Denis Loh:
Hi Tommi,

a user wrote me, that he got this compile error:

httptnt/resourceStreamer.ecpp: In Elementfunktion »virtual unsigned
int {anonymous}::_component_::operator()(tnt::HttpRequest&,
tnt::HttpReply&, tnt::QueryParams&)«:
httptnt/resourceStreamer.ecpp:42:3: Fehler: »setKeepAliveTimeout« ist
kein Element von »tnt::HttpReply«
make[1]: *** [httptnt/resourceStreamer.o] Fehler 1

He told me later, that he's using the most recent version from trunk.
There, setKeepAliveTimeout was removed. Is there an alternative to set
the timeout?

Denis
Configuration of tntnet is done using the serialization framework of cxxtools. So quite something changed in that area.

I wonder, why he wants to set the keep alive timeout from a ecpp. Maybe there is a other/better way to achieve the goal.

The keep alive timeout is a global setting and it looks strange to set it inside a request. Also normally it is not necessary to change it. Why it is changed anyway?

If you want to really do it, it can be done using "TntConfig::it().keepAliveTimeout = /something/". "TntConfig::it()" returns a reference to configuration object, where settings are stored.

Tommi


------------------------------------------------------------------------------
Keep yourself connected to Go Parallel:
BUILD Helping you discover the best ways to construct your parallel projects.
http://goparallel.sourceforge.net


_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general

------------------------------------------------------------------------------
Keep yourself connected to Go Parallel: 
BUILD Helping you discover the best ways to construct your parallel projects.
http://goparallel.sourceforge.net
_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general

Reply via email to