cppcms-users Mailing List for CppCMS C++ Web Framework (Page 48)
Brought to you by:
artyom-beilis
You can subscribe to this list here.
| 2009 |
Jan
|
Feb
(22) |
Mar
|
Apr
(3) |
May
|
Jun
(4) |
Jul
|
Aug
|
Sep
|
Oct
(15) |
Nov
(16) |
Dec
(13) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2010 |
Jan
(4) |
Feb
|
Mar
(8) |
Apr
(8) |
May
(8) |
Jun
(36) |
Jul
(63) |
Aug
(126) |
Sep
(47) |
Oct
(66) |
Nov
(46) |
Dec
(42) |
| 2011 |
Jan
(87) |
Feb
(24) |
Mar
(54) |
Apr
(21) |
May
(22) |
Jun
(18) |
Jul
(22) |
Aug
(101) |
Sep
(57) |
Oct
(33) |
Nov
(34) |
Dec
(66) |
| 2012 |
Jan
(64) |
Feb
(76) |
Mar
(73) |
Apr
(105) |
May
(93) |
Jun
(83) |
Jul
(84) |
Aug
(88) |
Sep
(57) |
Oct
(59) |
Nov
(35) |
Dec
(49) |
| 2013 |
Jan
(67) |
Feb
(17) |
Mar
(49) |
Apr
(64) |
May
(87) |
Jun
(64) |
Jul
(93) |
Aug
(23) |
Sep
(15) |
Oct
(16) |
Nov
(62) |
Dec
(73) |
| 2014 |
Jan
(5) |
Feb
(23) |
Mar
(21) |
Apr
(11) |
May
(1) |
Jun
(19) |
Jul
(27) |
Aug
(16) |
Sep
(5) |
Oct
(37) |
Nov
(12) |
Dec
(9) |
| 2015 |
Jan
(7) |
Feb
(7) |
Mar
(44) |
Apr
(28) |
May
(5) |
Jun
(12) |
Jul
(8) |
Aug
|
Sep
(39) |
Oct
(34) |
Nov
(30) |
Dec
(34) |
| 2016 |
Jan
(66) |
Feb
(23) |
Mar
(33) |
Apr
(15) |
May
(11) |
Jun
(15) |
Jul
(26) |
Aug
(4) |
Sep
(1) |
Oct
(30) |
Nov
(10) |
Dec
|
| 2017 |
Jan
(52) |
Feb
(9) |
Mar
(24) |
Apr
(16) |
May
(9) |
Jun
(12) |
Jul
(33) |
Aug
(8) |
Sep
|
Oct
(1) |
Nov
(2) |
Dec
(6) |
| 2018 |
Jan
(5) |
Feb
|
Mar
|
Apr
|
May
(14) |
Jun
(1) |
Jul
(9) |
Aug
(1) |
Sep
(13) |
Oct
(8) |
Nov
(2) |
Dec
(2) |
| 2019 |
Jan
(1) |
Feb
(1) |
Mar
(3) |
Apr
(3) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
|
| 2020 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
(9) |
Jul
(6) |
Aug
(25) |
Sep
(10) |
Oct
(10) |
Nov
(6) |
Dec
|
| 2021 |
Jan
|
Feb
|
Mar
(7) |
Apr
(1) |
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
(9) |
Oct
(1) |
Nov
|
Dec
|
| 2022 |
Jan
|
Feb
|
Mar
|
Apr
(3) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2025 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
|
From: <ele...@ex...> - 2013-08-02 06:05:12
|
Marcel,
Here is an example how you could design your asynchronous application
void nonblocking_function1()
{
// release_context() is the key
booster::shared_ptr<cppcms::http::context> ctx = release_context();
connections_.insert(ctx);
}
void nonblocking_function2()
{
srv_.thread_pool().post([=]() {
//do some heavy work like sql select
cppdb::result r = ....;
for(auto conn : connections_) {
// write out response to clients directly or add to a // queue
}
})
}
Depending on what you need to do, this might not work for you.
Artyom,
Is cppcms::http::response and cppcms::http::context thread safe?
I'm trying to decide, in the design of my app, whether I should be writing
to response().out() from the thread pool or whether I should be queuing
messages and sending them out from a single thread.
Cheers,
Petr
|
|
From: SIMON A. <All...@su...> - 2013-08-02 03:27:56
|
Hi I'm doing the same things on Tatowiki https://github.com/allan-simon/tatowiki but I'm using add , instead of attach https://github.com/allan-simon/tatowiki/blob/master/app/src/TatoWiki.cpp add(articles,"^/articles(.*)",1); https://github.com/allan-simon/tatowiki/blob/master/app/src/controllers/webs/Articles.cpp for the code of Articles class Hope it helps Regards, Allan SIMON Tatoeba Administrator (Sysko) ________________________________________ De : Sab [rim...@gm...] Envoyé : mardi 30 juillet 2013 12:09 À : cpp...@li... Objet : [Cppcms-users] Multiple level dispatching Hi all, I'm trying to use multiple level dispatching and it seems to work for me different than the tutorials show. My request is GET myapp/Test/Settings. If I pass only "/Settings" to the dispatcher in the subclass, it doesn't get matched. It only works if I pass "/Test/Settings" to the dispatcher. Concretely: In my main class I have: attach(new TestHandler::TestHandler(srv), "/Test(/(.*))?",1); In my TestHandler class constructor I should have have: dispatcher().assign("/Settings", &TestHandler::ProcessSettings, this); but must have: dispatcher().assign("/Test/Settings", &TestHandler::ProcessSettings, this); to make it work. Am I doing something wrong? ------------------------------------------------------------------------------ Get your SQL database under version control now! Version control is standard for application code, but databases havent caught up. So what steps can you take to put your SQL databases under version control? Why should you start doing it? Read more to find out. http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk _______________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users |
|
From: Petr J. <ele...@ex...> - 2013-07-31 23:26:32
|
> Until now... I said this is stub only until now. I could split them into > sync and async operations and provide two different classes for them. > This code is totaly under development and still in early pre-alpha ;) Generally, an async app is designed to handle multiple connections, and that's it. It's used when you need to push data to multiple clients at the same time. ie. stock market price update. > So this means, one thread for all async apps, but multiple workers for > the thread pool? > How is the async app connected to the thread pool? Why does it block it? > That makes no sense to me :/ I'm going to summarize the differences between synchronous, asynchronous, event loop, and thread pool here. Synchronous operation = request in -> response out Asynchronous operation = connection in -> non-blocking wait -> response out when data is ready The key is non-blocking wait. You can have thousands of connections in non-blocking wait, all waiting for a single information/data to be processed. When the data is ready, it's sent out at the same time to all, or some clients. Event loop is the central dispatch point of cppcms. When a connection comes in, it goes to the event loop first. The even loop is really just a loop. If you are blocking in the event loop, you are blocking the whole application. If the application is synchronous (using the application_factory class), it is immediately dispatched from the event loop to the thread pool, therefore it doesn't block. (thread_pool::post() is a non-blocking operation, and it returns immediately) If the application is asynchronous, it's using booster::intrusive_ptr class. This application is running inside the event loop, and therefore must NOT block. Communication between the event loop and the thread pool is facilitated using thread_pool::post() and service::post() methods. They take a functor as an argument. Petr |
|
From: Marcel H. <ke...@co...> - 2013-07-31 22:01:53
|
On 31.07.2013 23:55, Petr Janda wrote: > I had a quick look over your code, and I also don't understand why you > are using async, when all your methods operating synchronously, and block. Until now... I said this is stub only until now. I could split them into sync and async operations and provide two different classes for them. This code is totaly under development and still in early pre-alpha ;) > If you are blocking in an async app, you're blocking the thread pool. > Any heavy operation must be processed in the thread-pool using > thread_pool::post() method. So this means, one thread for all async apps, but multiple workers for the thread pool? How is the async app connected to the thread pool? Why does it block it? That makes no sense to me :/ But yes, I will regard your answers and will revise my code |
|
From: Petr J. <ele...@ex...> - 2013-07-31 21:55:40
|
I had a quick look over your code, and I also don't understand why you are using async, when all your methods operating synchronously, and block. If you are blocking in an async app, you're blocking the thread pool. Any heavy operation must be processed in the thread-pool using thread_pool::post() method. Petr On 1/08/2013 5:16 AM, Marcel Hellwig wrote: > On 31.07.2013 20:56, Artyom Beilis wrote: >> 1. how do you trigger the loop? > which loop? the thread_pool loop? I don't know ;) >> 2. I don't understand why are you using asynchronous application for >> the WebAPI. You don't do anything asynchronous. > * the json_rpc_chat is also async > * you wrote that an async handler is able to handle more requests at > one than sync one can and it will be designed that the webapi will > provide the whole logic for the game, so you can also do rpc request > from desktop applications. > * async is cool >> More than that calling blocking SQL from event loop is BAD idea. > Hmmm, how to fix it? >> >> also is there any way to make it with less dependencies so I can build it > Hmmm, there aren't many dependencies :/ just cppcms/cppdb/cryptopp and a > self made logger framework logre. > logre can also be found at the git page i provided. > > I also have a logre-less version for you. > http://cookiesoft.de/sp.tar.bz2 > > > > > > > ------------------------------------------------------------------------------ > Get your SQL database under version control now! > Version control is standard for application code, but databases havent > caught up. So what steps can you take to put your SQL databases under > version control? Why should you start doing it? Read more to find out. > http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk > > > > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > -- Please use PGP to encrypt your email to ensure our privacy is respected. |
|
From: Marcel H. <ke...@co...> - 2013-07-31 19:16:40
|
On 31.07.2013 20:56, Artyom Beilis wrote: > 1. how do you trigger the loop? which loop? the thread_pool loop? I don't know ;) > 2. I don't understand why are you using asynchronous application for > the WebAPI. You don't do anything asynchronous. * the json_rpc_chat is also async * you wrote that an async handler is able to handle more requests at one than sync one can and it will be designed that the webapi will provide the whole logic for the game, so you can also do rpc request from desktop applications. * async is cool > More than that calling blocking SQL from event loop is BAD idea. Hmmm, how to fix it? > > also is there any way to make it with less dependencies so I can build it Hmmm, there aren't many dependencies :/ just cppcms/cppdb/cryptopp and a self made logger framework logre. logre can also be found at the git page i provided. I also have a logre-less version for you. http://cookiesoft.de/sp.tar.bz2 |
|
From: Artyom B. <art...@ya...> - 2013-07-31 18:56:26
|
1. how do you trigger the loop? 2. I don't understand why are you using asynchronous application for the WebAPI. You don't do anything asynchronous. More than that calling blocking SQL from event loop is BAD idea. also is there any way to make it with less dependencies so I can build it Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: Marcel Hellwig <ke...@co...> >To: cpp...@li... >Sent: Wednesday, July 31, 2013 9:31 PM >Subject: Re: [Cppcms-users] 100% cpu usage > > > >On 31.07.2013 09:55, Artyom Beilis wrote: > >Guys >> >> >>To try to figure out what happens I really need a test case that reproduces the problem >>to see what happens, or somebody would join the process that uses 100% CPU with a debugger >>and bring some stack trace and see what is the loop that happens there The source code is here: >http://cookiesoft.de/git/?p=spaceio.git > >I still don't have a strace, but I will provide one as soon as I get time. >I know what happens when cppcms gets 100%. >There are 19 threads stuck at thread_pool.cpp in line 114 and always do polling, so they don't wait, the always poll. I think there is some kind of racecondition, but I don't know what kind :/ > >Hope you will fix it. > >------------------------------------------------------------------------------ >Get your SQL database under version control now! >Version control is standard for application code, but databases havent >caught up. So what steps can you take to put your SQL databases under >version control? Why should you start doing it? Read more to find out. >http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |
|
From: Marcel H. <ke...@co...> - 2013-07-31 18:31:37
|
On 31.07.2013 09:55, Artyom Beilis wrote: > Guys > > To try to figure out what happens I really need a test case that > reproduces the problem > to see what happens, or somebody would join the process that uses 100% > CPU with a debugger > and bring some stack trace and see what is the loop that happens there The source code is here: http://cookiesoft.de/git/?p=spaceio.git I still don't have a strace, but I will provide one as soon as I get time. I know what happens when cppcms gets 100%. There are 19 threads stuck at thread_pool.cpp in line 114 and always do polling, so they don't wait, the always poll. I think there is some kind of racecondition, but I don't know what kind :/ Hope you will fix it. |
|
From: Artyom B. <art...@ya...> - 2013-07-31 07:55:21
|
Guys To try to figure out what happens I really need a test case that reproduces the problem to see what happens, or somebody would join the process that uses 100% CPU with a debugger and bring some stack trace and see what is the loop that happens there Without it I can't tell what is the problem. It also may be incorrect use of API. I had already seen some problems that were reported that actually was API abuse. It is especially gentle in case of multi-threading and asynchronous programming. Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: Marcel Hellwig <ke...@co...> >To: cpp...@li... >Sent: Wednesday, July 31, 2013 10:48 AM >Subject: Re: [Cppcms-users] 100% cpu usage > > > >On 30.07.2013 18:32, le ba wrote: > >Hi Marcel, >> >> >>Just some question, did you try with other compilator and did you have the same problem? No, I hadn't tried it yet. > >I never had this problem before (with mingw 4.7.2) and it would be very interesting to know the reasons or the causes. >> >> >>Thanks >> >> >> >> >> >>2013/7/29 Marcel Hellwig <ke...@co...> >> >>On 29.07.2013 00:10, Petr Janda wrote: >>>> Is this happening in your async app? I experienced something similar, >>>> but I only just started writing an async app. >>> Yo. >>> >>>> I'm using clang, and have c++11 enabled. >>> Both for me too, but only the app is c++11, not cppcms itself. >>> >>>> After about 10 seconds, the CPU usage climbed to 100%. >>> Hmm. 10s is much too less and it does not happen every time. >>> >>>> I haven't yet been really bothered by it yet (only just started >>>> designing the app, doing some tests). >>>> >>>> Will see when I get back to writing code. >>> Would be great if you can trigger that problem and know what it causes. >>> >>> >>> >>>------------------------------------------------------------------------------ >>>See everything from the browser to the database with AppDynamics >>>Get end-to-end visibility with application monitoring from AppDynamics >>>Isolate bottlenecks and diagnose root cause in seconds. >>>Start your free trial of AppDynamics Pro today! >>>http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk >>>_______________________________________________ >>>Cppcms-users mailing list >>>Cpp...@li... >>>https://lists.sourceforge.net/lists/listinfo/cppcms-users >>> >>> >> >> >> >>------------------------------------------------------------------------------ Get your SQL database under version control now! Version control is standard for application code, but databases havent caught up. So what steps can you take to put your SQL databases under version control? Why should you start doing it? Read more to find out. http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk >> >> >>_______________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users > >------------------------------------------------------------------------------ >Get your SQL database under version control now! >Version control is standard for application code, but databases havent >caught up. So what steps can you take to put your SQL databases under >version control? Why should you start doing it? Read more to find out. >http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |
|
From: Marcel H. <ke...@co...> - 2013-07-31 07:48:15
|
On 30.07.2013 18:32, le ba wrote: > Hi Marcel, > > Just some question, did you try with other compilator and did you have > the same problem? No, I hadn't tried it yet. > I never had this problem before (with mingw 4.7.2) and it would be > very interesting to know the reasons or the causes. > > Thanks > > > > 2013/7/29 Marcel Hellwig <ke...@co... <mailto:ke...@co...>> > > On 29.07.2013 00:10, Petr Janda wrote: > > Is this happening in your async app? I experienced something > similar, > > but I only just started writing an async app. > Yo. > > I'm using clang, and have c++11 enabled. > Both for me too, but only the app is c++11, not cppcms itself. > > After about 10 seconds, the CPU usage climbed to 100%. > Hmm. 10s is much too less and it does not happen every time. > > I haven't yet been really bothered by it yet (only just started > > designing the app, doing some tests). > > > > Will see when I get back to writing code. > Would be great if you can trigger that problem and know what it > causes. > > > > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > <mailto:Cpp...@li...> > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > > > ------------------------------------------------------------------------------ > Get your SQL database under version control now! > Version control is standard for application code, but databases havent > caught up. So what steps can you take to put your SQL databases under > version control? Why should you start doing it? Read more to find out. > http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk > > > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users |
|
From: le ba <hma...@gm...> - 2013-07-30 16:32:50
|
Hi Marcel, Just some question, did you try with other compilator and did you have the same problem? I never had this problem before (with mingw 4.7.2) and it would be very interesting to know the reasons or the causes. Thanks 2013/7/29 Marcel Hellwig <ke...@co...> > On 29.07.2013 00:10, Petr Janda wrote: > > Is this happening in your async app? I experienced something similar, > > but I only just started writing an async app. > Yo. > > I'm using clang, and have c++11 enabled. > Both for me too, but only the app is c++11, not cppcms itself. > > After about 10 seconds, the CPU usage climbed to 100%. > Hmm. 10s is much too less and it does not happen every time. > > I haven't yet been really bothered by it yet (only just started > > designing the app, doing some tests). > > > > Will see when I get back to writing code. > Would be great if you can trigger that problem and know what it causes. > > > > > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > |
|
From: 陈抒 <csf...@gm...> - 2013-07-30 13:43:26
|
I made much progress. It's about dependency order. Because if A needs B, A should appear in front of B. I delete all libraries started with -l in the command, and add one, then link it. will see linker complains some thing missed. Then I add one. Finally, I link my app successfully. Below is the command which is much longer than what I expected. /usr/bin/c++ -g /home/dean/work/jiangshu-sports-lottery/builder/o/displays.cpp.o /home/dean/work/jiangshu-sports-lottery/builder/o/display.cpp.o /home/dean/work/jiangshu-sports-lottery/builder/o/default.cc.o /home/dean/work/jiangshu-sports-lottery/builder/o/main.cpp.o /home/dean/work/jiangshu-sports-lottery/builder/o/gprsConfig.cc.o /home/dean/work/jiangshu-sports-lottery/builder/o/userTitle.cc.o /home/dean/work/jiangshu-sports-lottery/builder/o/groupManagement.cc.o /home/dean/work/jiangshu-sports-lottery/builder/o/kaimei_web_site.cc.o /home/dean/work/jiangshu-sports-lottery/builder/o/home.cc.o /home/dean/work/jiangshu-sports-lottery/builder/o/log.cc.o /home/dean/work/jiangshu-sports-lottery/builder/o/group_manager.cpp.o /home/dean/work/jiangshu-sports-lottery/builder/o/gprsManager.cc.o /home/dean/work/jiangshu-sports-lottery/builder/o/display_manager.cpp.o /home/dean/work/jiangshu-sports-lottery/builder/o/time_helper.cpp.o /home/dean/work/jiangshu-sports-lottery/builder/o/user_manager.cc.o /home/dean/work/jiangshu-sports-lottery/builder/o/message.cc.o /home/dean/work/jiangshu-sports-lottery/builder/o/message_log.cpp.o /home/dean/work/jiangshu-sports-lottery/builder/o/web_user.cc.o /home/dean/work/jiangshu-sports-lottery/builder/o/message_manager.cpp.o /home/dean/work/jiangshu-sports-lottery/builder/o/accounts.cc.o /home/dean/work/jiangshu-sports-lottery/builder/o/mongo_session_factory.cpp.o /home/dean/work/jiangshu-sports-lottery/builder/o/groups.cpp.o /home/dean/work/jiangshu-sports-lottery/builder/o/mongo_session.cpp.o /home/dean/work/jiangshu-sports-lottery/builder/o/deny.cc.o /home/dean/work/jiangshu-sports-lottery/builder/o/language_cache.cpp.o /home/dean/work/jiangshu-sports-lottery/builder/o/register_client.cc.o /home/dean/work/jiangshu-sports-lottery/builder/o/updatePassword.cc.o /home/dean/work/jiangshu-sports-lottery/builder/o/address_messages.cc.o /home/dean/work/jiangshu-sports-lottery/builder/o/login.cc.o /home/dean/work/jiangshu-sports-lottery/builder/o/my_application.cpp.o /home/dean/work/jiangshu-sports-lottery/builder/o/email_manager.cc.o /home/dean/work/jiangshu-sports-lottery/builder/o/language_manager.cpp.o /home/dean/work/jiangshu-sports-lottery/builder/o/group.cpp.o -o bin/sports_lottery -static -static-libgcc -static-libstdc++ -lmongoclient -lcppcms -lbooster -lboost_system -lloki -lcryptopp -lboost_thread -pthread -lboost_filesystem -ldl -lgcrypt -lz -lpcre -licuuc -licui18n -lgpg-error -licuuc -licudata -lgcc /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../lib/libmongoclient.a(sock.o):sock.cpp:function mongo::SockAddr::SockAddr(char const*, int): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../lib/libmongoclient.a(sock.o):sock.cpp:function mongo::SockAddr::SockAddr(char const*, int): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/src/cppcms-1.0.3/src/views_pool.cpp:199: warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/src/cppcms-1.0.3/src/views_pool.cpp:199: warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/src/cppcms-1.0.3/src/daemonize.cpp:80: warning: Using 'getgrnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/src/cppcms-1.0.3/src/daemonize.cpp:88: warning: Using 'getpwnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/src/cppcms-1.0.3/booster/lib/shared_object/src/shared_object.cpp:106: warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/src/cppcms-1.0.3/booster/lib/shared_object/src/shared_object.cpp:112: warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../x86_64-linux-gnu/libicuuc.a( putil.ao):function uprv_dl_open_48: warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking But I still get some warning messages, It seems it is another problem for me. Any idea? Dean Chen Best regards http://blog.csdn.net/sheismylife On Mon, Jul 29, 2013 at 8:49 PM, Shiv Shankar Dayal < shi...@gm...> wrote: > You can also pass -L/path-to-dir-which-contains-libdl.so to gcc. > > > On Tuesday 30 July 2013 10:52 AM, Marcel Hellwig wrote: > > On 30.07.2013 02:12, 陈抒 wrote: > > find / -name 'libdl.*' > /usr/lib/x86_64-linux-gnu/libdl.a > /usr/lib/x86_64-linux-gnu/libdl.so > /lib/i386-linux-gnu/libdl.so.2 > /lib/x86_64-linux-gnu/libdl.so.2 > > But I need to static link it in my app. Do you mean LIBRARY_PATH > instead of LD_LIBRARY_PATH? > > > One is for runtime, the other one for compile time ;)http://stackoverflow.com/questions/4250624/ld-library-path-vs-library-path > > you also can check if ldconfig finds your libdl with > > ldconfig -p | grep libdl > > if not, update your ldconfhttp://linux.101hacks.com/unix/ldconfig/ > > > > > ------------------------------------------------------------------------------ > Get your SQL database under version control now! > Version control is standard for application code, but databases havent > caught up. So what steps can you take to put your SQL databases under > version control? Why should you start doing it? Read more to find out.http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk > > > > _______________________________________________ > Cppcms-users mailing lis...@li...://lists.sourceforge.net/lists/listinfo/cppcms-users > > > > > ------------------------------------------------------------------------------ > Get your SQL database under version control now! > Version control is standard for application code, but databases havent > caught up. So what steps can you take to put your SQL databases under > version control? Why should you start doing it? Read more to find out. > http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > |
|
From: Sab <rim...@gm...> - 2013-07-30 12:09:46
|
Hi all,
I'm trying to use multiple level dispatching and it seems to work for me
different than the tutorials show.
My request is GET myapp/Test/Settings.
If I pass only "/Settings" to the dispatcher in the subclass, it doesn't get
matched. It only works if I pass "/Test/Settings" to the dispatcher.
Concretely:
In my main class I have:
attach(new TestHandler::TestHandler(srv), "/Test(/(.*))?",1);
In my TestHandler class constructor I should have have:
dispatcher().assign("/Settings", &TestHandler::ProcessSettings, this);
but must have:
dispatcher().assign("/Test/Settings", &TestHandler::ProcessSettings, this);
to make it work. Am I doing something wrong?
|
|
From: Shiv S. D. <shi...@gm...> - 2013-07-30 06:14:56
|
You can also pass -L/path-to-dir-which-contains-libdl.so to gcc. On Tuesday 30 July 2013 10:52 AM, Marcel Hellwig wrote: > On 30.07.2013 02:12, ?? wrote: >> find / -name 'libdl.*' >> /usr/lib/x86_64-linux-gnu/libdl.a >> /usr/lib/x86_64-linux-gnu/libdl.so >> /lib/i386-linux-gnu/libdl.so.2 >> /lib/x86_64-linux-gnu/libdl.so.2 >> >> But I need to static link it in my app. Do you mean LIBRARY_PATH >> instead of LD_LIBRARY_PATH? >> > One is for runtime, the other one for compile time ;) > http://stackoverflow.com/questions/4250624/ld-library-path-vs-library-path > > you also can check if ldconfig finds your libdl with >> ldconfig -p | grep libdl > if not, update your ldconf > http://linux.101hacks.com/unix/ldconfig/ > > > > > > ------------------------------------------------------------------------------ > Get your SQL database under version control now! > Version control is standard for application code, but databases havent > caught up. So what steps can you take to put your SQL databases under > version control? Why should you start doing it? Read more to find out. > http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk > > > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users |
|
From: Shiv S. D. <shi...@gm...> - 2013-07-30 06:03:52
|
undefined reference for symbol x clearly means the linker when invoked by compiler is not able to find the library which contains the symbol in this case libdl.so. Normally on Linux systems cppcms goes in /usr/local/lib which is not there in LD_LIBRARY_PATH therefore compilation fails. I have found keeping that in LD_LIBRARY_PATH helpful. Write a simple program which uses libdl.so and try compiling that see if that compiles. Since you said that -ldl flag has been used then it should say libdl.so is not found if it is not in appropriate path. Respect, Shiv On Tuesday 30 July 2013 10:52 AM, Marcel Hellwig wrote: > On 30.07.2013 02:12, ?? wrote: >> find / -name 'libdl.*' >> /usr/lib/x86_64-linux-gnu/libdl.a >> /usr/lib/x86_64-linux-gnu/libdl.so >> /lib/i386-linux-gnu/libdl.so.2 >> /lib/x86_64-linux-gnu/libdl.so.2 >> >> But I need to static link it in my app. Do you mean LIBRARY_PATH >> instead of LD_LIBRARY_PATH? >> > One is for runtime, the other one for compile time ;) > http://stackoverflow.com/questions/4250624/ld-library-path-vs-library-path > > you also can check if ldconfig finds your libdl with >> ldconfig -p | grep libdl > if not, update your ldconf > http://linux.101hacks.com/unix/ldconfig/ > > > > > > ------------------------------------------------------------------------------ > Get your SQL database under version control now! > Version control is standard for application code, but databases havent > caught up. So what steps can you take to put your SQL databases under > version control? Why should you start doing it? Read more to find out. > http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk > > > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users |
|
From: Marcel H. <ke...@co...> - 2013-07-30 05:22:45
|
On 30.07.2013 02:12, 陈抒 wrote: > find / -name 'libdl.*' > /usr/lib/x86_64-linux-gnu/libdl.a > /usr/lib/x86_64-linux-gnu/libdl.so > /lib/i386-linux-gnu/libdl.so.2 > /lib/x86_64-linux-gnu/libdl.so.2 > > But I need to static link it in my app. Do you mean LIBRARY_PATH > instead of LD_LIBRARY_PATH? > One is for runtime, the other one for compile time ;) http://stackoverflow.com/questions/4250624/ld-library-path-vs-library-path you also can check if ldconfig finds your libdl with > ldconfig -p | grep libdl if not, update your ldconf http://linux.101hacks.com/unix/ldconfig/ |
|
From: 陈抒 <csf...@gm...> - 2013-07-30 00:13:18
|
find / -name 'libdl.*' /usr/lib/x86_64-linux-gnu/libdl.a /usr/lib/x86_64-linux-gnu/libdl.so /lib/i386-linux-gnu/libdl.so.2 /lib/x86_64-linux-gnu/libdl.so.2 But I need to static link it in my app. Do you mean LIBRARY_PATH instead of LD_LIBRARY_PATH? Dean Chen Best regards http://blog.csdn.net/sheismylife On Mon, Jul 29, 2013 at 7:10 AM, Shiv Shankar Dayal < shi...@gm...> wrote: > Are you sure libdl.so exists on your system and is in LD_LIBRARY_PATH? > > > On Monday 29 July 2013 09:42 PM, 陈抒 wrote: > > Hi, > Today I want to static all libraries into my C++ app, but I got error. > > collect2: error: ld returned 1 exit status > /usr/bin/c++ -g > /home/dean/work/jiangshu-sports-lottery/builder/o/displays.cpp.o > /home/dean/work/jiangshu-sports-lottery/builder/o/display.cpp.o > /home/dean/work/jiangshu-sports-lottery/builder/o/default.cc.o > /home/dean/work/jiangshu-sports-lottery/builder/o/main.cpp.o > /home/dean/work/jiangshu-sports-lottery/builder/o/gprsConfig.cc.o > /home/dean/work/jiangshu-sports-lottery/builder/o/userTitle.cc.o > /home/dean/work/jiangshu-sports-lottery/builder/o/groupManagement.cc.o > /home/dean/work/jiangshu-sports-lottery/builder/o/kaimei_web_site.cc.o > /home/dean/work/jiangshu-sports-lottery/builder/o/home.cc.o > /home/dean/work/jiangshu-sports-lottery/builder/o/log.cc.o > /home/dean/work/jiangshu-sports-lottery/builder/o/group_manager.cpp.o > /home/dean/work/jiangshu-sports-lottery/builder/o/gprsManager.cc.o > /home/dean/work/jiangshu-sports-lottery/builder/o/display_manager.cpp.o > /home/dean/work/jiangshu-sports-lottery/builder/o/time_helper.cpp.o > /home/dean/work/jiangshu-sports-lottery/builder/o/user_manager.cc.o > /home/dean/work/jiangshu-sports-lottery/builder/o/message.cc.o > /home/dean/work/jiangshu-sports-lottery/builder/o/message_log.cpp.o > /home/dean/work/jiangshu-sports-lottery/builder/o/web_user.cc.o > /home/dean/work/jiangshu-sports-lottery/builder/o/message_manager.cpp.o > /home/dean/work/jiangshu-sports-lottery/builder/o/accounts.cc.o > /home/dean/work/jiangshu-sports-lottery/builder/o/mongo_session_factory.cpp.o > /home/dean/work/jiangshu-sports-lottery/builder/o/groups.cpp.o > /home/dean/work/jiangshu-sports-lottery/builder/o/mongo_session.cpp.o > /home/dean/work/jiangshu-sports-lottery/builder/o/deny.cc.o > /home/dean/work/jiangshu-sports-lottery/builder/o/language_cache.cpp.o > /home/dean/work/jiangshu-sports-lottery/builder/o/register_client.cc.o > /home/dean/work/jiangshu-sports-lottery/builder/o/updatePassword.cc.o > /home/dean/work/jiangshu-sports-lottery/builder/o/address_messages.cc.o > /home/dean/work/jiangshu-sports-lottery/builder/o/login.cc.o > /home/dean/work/jiangshu-sports-lottery/builder/o/my_application.cpp.o > /home/dean/work/jiangshu-sports-lottery/builder/o/email_manager.cc.o > /home/dean/work/jiangshu-sports-lottery/builder/o/language_manager.cpp.o > /home/dean/work/jiangshu-sports-lottery/builder/o/group.cpp.o -o > bin/sports_lottery -static-libgcc -static-libstdc++ -static -pthread > -lcppcms -lmongoclient -lbooster -lloki -lcryptopp -lboost_system > -lboost_thread -lboost_filesystem > /usr/src/cppcms-1.0.3/src/views_pool.cpp:199: error: undefined reference > to 'dlopen' > /usr/src/cppcms-1.0.3/src/views_pool.cpp:199: error: undefined reference > to 'dlopen' > ... > > Then I add -ldl before -lcppcms, still got the same error. > > -pthread -ldl -lcppcms > > Dean Chen > Best regards > http://blog.csdn.net/sheismylife > > > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today!http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > > > > _______________________________________________ > Cppcms-users mailing lis...@li...://lists.sourceforge.net/lists/listinfo/cppcms-users > > > > > ------------------------------------------------------------------------------ > Get your SQL database under version control now! > Version control is standard for application code, but databases havent > caught up. So what steps can you take to put your SQL databases under > version control? Why should you start doing it? Read more to find out. > http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > |
|
From: Shiv S. D. <shi...@gm...> - 2013-07-29 16:35:25
|
Are you sure libdl.so exists on your system and is in LD_LIBRARY_PATH? On Monday 29 July 2013 09:42 PM, ?? wrote: > Hi, > Today I want to static all libraries into my C++ app, but I got error. > > collect2: error: ld returned 1 exit status > /usr/bin/c++ -g > /home/dean/work/jiangshu-sports-lottery/builder/o/displays.cpp.o > /home/dean/work/jiangshu-sports-lottery/builder/o/display.cpp.o > /home/dean/work/jiangshu-sports-lottery/builder/o/default.cc.o > /home/dean/work/jiangshu-sports-lottery/builder/o/main.cpp.o > /home/dean/work/jiangshu-sports-lottery/builder/o/gprsConfig.cc.o > /home/dean/work/jiangshu-sports-lottery/builder/o/userTitle.cc.o > /home/dean/work/jiangshu-sports-lottery/builder/o/groupManagement.cc.o > /home/dean/work/jiangshu-sports-lottery/builder/o/kaimei_web_site.cc.o > /home/dean/work/jiangshu-sports-lottery/builder/o/home.cc.o > /home/dean/work/jiangshu-sports-lottery/builder/o/log.cc.o > /home/dean/work/jiangshu-sports-lottery/builder/o/group_manager.cpp.o > /home/dean/work/jiangshu-sports-lottery/builder/o/gprsManager.cc.o > /home/dean/work/jiangshu-sports-lottery/builder/o/display_manager.cpp.o /home/dean/work/jiangshu-sports-lottery/builder/o/time_helper.cpp.o > /home/dean/work/jiangshu-sports-lottery/builder/o/user_manager.cc.o > /home/dean/work/jiangshu-sports-lottery/builder/o/message.cc.o > /home/dean/work/jiangshu-sports-lottery/builder/o/message_log.cpp.o > /home/dean/work/jiangshu-sports-lottery/builder/o/web_user.cc.o > /home/dean/work/jiangshu-sports-lottery/builder/o/message_manager.cpp.o /home/dean/work/jiangshu-sports-lottery/builder/o/accounts.cc.o > /home/dean/work/jiangshu-sports-lottery/builder/o/mongo_session_factory.cpp.o > /home/dean/work/jiangshu-sports-lottery/builder/o/groups.cpp.o > /home/dean/work/jiangshu-sports-lottery/builder/o/mongo_session.cpp.o > /home/dean/work/jiangshu-sports-lottery/builder/o/deny.cc.o > /home/dean/work/jiangshu-sports-lottery/builder/o/language_cache.cpp.o > /home/dean/work/jiangshu-sports-lottery/builder/o/register_client.cc.o > /home/dean/work/jiangshu-sports-lottery/builder/o/updatePassword.cc.o > /home/dean/work/jiangshu-sports-lottery/builder/o/address_messages.cc.o /home/dean/work/jiangshu-sports-lottery/builder/o/login.cc.o > /home/dean/work/jiangshu-sports-lottery/builder/o/my_application.cpp.o > /home/dean/work/jiangshu-sports-lottery/builder/o/email_manager.cc.o > /home/dean/work/jiangshu-sports-lottery/builder/o/language_manager.cpp.o > /home/dean/work/jiangshu-sports-lottery/builder/o/group.cpp.o -o > bin/sports_lottery -static-libgcc -static-libstdc++ -static -pthread > -lcppcms -lmongoclient -lbooster -lloki -lcryptopp -lboost_system > -lboost_thread -lboost_filesystem > /usr/src/cppcms-1.0.3/src/views_pool.cpp:199: error: undefined > reference to 'dlopen' > /usr/src/cppcms-1.0.3/src/views_pool.cpp:199: error: undefined > reference to 'dlopen' > ... > > Then I add -ldl before -lcppcms, still got the same error. > > -pthread -ldl -lcppcms > > Dean Chen > Best regards > http://blog.csdn.net/sheismylife > > > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > > > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users |
|
From: 陈抒 <csf...@gm...> - 2013-07-29 16:13:01
|
Hi, Today I want to static all libraries into my C++ app, but I got error. collect2: error: ld returned 1 exit status /usr/bin/c++ -g /home/dean/work/jiangshu-sports-lottery/builder/o/displays.cpp.o /home/dean/work/jiangshu-sports-lottery/builder/o/display.cpp.o /home/dean/work/jiangshu-sports-lottery/builder/o/default.cc.o /home/dean/work/jiangshu-sports-lottery/builder/o/main.cpp.o /home/dean/work/jiangshu-sports-lottery/builder/o/gprsConfig.cc.o /home/dean/work/jiangshu-sports-lottery/builder/o/userTitle.cc.o /home/dean/work/jiangshu-sports-lottery/builder/o/groupManagement.cc.o /home/dean/work/jiangshu-sports-lottery/builder/o/kaimei_web_site.cc.o /home/dean/work/jiangshu-sports-lottery/builder/o/home.cc.o /home/dean/work/jiangshu-sports-lottery/builder/o/log.cc.o /home/dean/work/jiangshu-sports-lottery/builder/o/group_manager.cpp.o /home/dean/work/jiangshu-sports-lottery/builder/o/gprsManager.cc.o /home/dean/work/jiangshu-sports-lottery/builder/o/display_manager.cpp.o /home/dean/work/jiangshu-sports-lottery/builder/o/time_helper.cpp.o /home/dean/work/jiangshu-sports-lottery/builder/o/user_manager.cc.o /home/dean/work/jiangshu-sports-lottery/builder/o/message.cc.o /home/dean/work/jiangshu-sports-lottery/builder/o/message_log.cpp.o /home/dean/work/jiangshu-sports-lottery/builder/o/web_user.cc.o /home/dean/work/jiangshu-sports-lottery/builder/o/message_manager.cpp.o /home/dean/work/jiangshu-sports-lottery/builder/o/accounts.cc.o /home/dean/work/jiangshu-sports-lottery/builder/o/mongo_session_factory.cpp.o /home/dean/work/jiangshu-sports-lottery/builder/o/groups.cpp.o /home/dean/work/jiangshu-sports-lottery/builder/o/mongo_session.cpp.o /home/dean/work/jiangshu-sports-lottery/builder/o/deny.cc.o /home/dean/work/jiangshu-sports-lottery/builder/o/language_cache.cpp.o /home/dean/work/jiangshu-sports-lottery/builder/o/register_client.cc.o /home/dean/work/jiangshu-sports-lottery/builder/o/updatePassword.cc.o /home/dean/work/jiangshu-sports-lottery/builder/o/address_messages.cc.o /home/dean/work/jiangshu-sports-lottery/builder/o/login.cc.o /home/dean/work/jiangshu-sports-lottery/builder/o/my_application.cpp.o /home/dean/work/jiangshu-sports-lottery/builder/o/email_manager.cc.o /home/dean/work/jiangshu-sports-lottery/builder/o/language_manager.cpp.o /home/dean/work/jiangshu-sports-lottery/builder/o/group.cpp.o -o bin/sports_lottery -static-libgcc -static-libstdc++ -static -pthread -lcppcms -lmongoclient -lbooster -lloki -lcryptopp -lboost_system -lboost_thread -lboost_filesystem /usr/src/cppcms-1.0.3/src/views_pool.cpp:199: error: undefined reference to 'dlopen' /usr/src/cppcms-1.0.3/src/views_pool.cpp:199: error: undefined reference to 'dlopen' ... Then I add -ldl before -lcppcms, still got the same error. -pthread -ldl -lcppcms Dean Chen Best regards http://blog.csdn.net/sheismylife |
|
From: Marcel H. <ke...@co...> - 2013-07-29 06:45:28
|
On 29.07.2013 00:10, Petr Janda wrote: > Is this happening in your async app? I experienced something similar, > but I only just started writing an async app. Yo. > I'm using clang, and have c++11 enabled. Both for me too, but only the app is c++11, not cppcms itself. > After about 10 seconds, the CPU usage climbed to 100%. Hmm. 10s is much too less and it does not happen every time. > I haven't yet been really bothered by it yet (only just started > designing the app, doing some tests). > > Will see when I get back to writing code. Would be great if you can trigger that problem and know what it causes. |
|
From: Petr J. <ele...@ex...> - 2013-07-28 22:10:46
|
Is this happening in your async app? I experienced something similar, but I only just started writing an async app. Connection c(release_context()) set.insert(c); Connection class contains booster::shared_ptr<cppcms::http::context> as a member. I've opened up browser and went to the URL that runs the above code, got a white screen (which i suspect is expected). I'm using clang, and have c++11 enabled. After about 10 seconds, the CPU usage climbed to 100%. I haven't yet been really bothered by it yet (only just started designing the app, doing some tests). Will see when I get back to writing code. On 27/07/2013 8:18 AM, Marcel Hellwig wrote: > Hi Artyom, > > Sometimes cppcms gets 100% cpu load. I don't know what triggers this > behavoir and I don't know how to invegstigate that problem. > Maybe you can tell me, what to do, to make a bug report for this. > For now I made a perf record and attached it (about 10s of record). > I hope you can open it :/ > > Regards > > > > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > > > > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > -- Please use PGP to encrypt your email to ensure our privacy is respected. |
|
From: Artyom B. <art...@ya...> - 2013-07-28 09:36:32
|
You need to be little bit more specific. - Try to get debugger trace when it gets 100% - Try to see strace output when it gets to the 100% Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: Marcel Hellwig <ke...@co...> >To: Artyom Beilis <art...@ya...> >Cc: cpp...@li... >Sent: Saturday, July 27, 2013 1:18 AM >Subject: 100% cpu usage > > >Hi Artyom, > >Sometimes cppcms gets 100% cpu load. I don't know what triggers this >behavoir and I don't know how to invegstigate that problem. >Maybe you can tell me, what to do, to make a bug report for this. >For now I made a perf record and attached it (about 10s of record). >I hope you can open it :/ > >Regards > > > |
|
From: Marcel H. <ke...@co...> - 2013-07-26 22:18:19
|
Hi Artyom, Sometimes cppcms gets 100% cpu load. I don't know what triggers this behavoir and I don't know how to invegstigate that problem. Maybe you can tell me, what to do, to make a bug report for this. For now I made a perf record and attached it (about 10s of record). I hope you can open it :/ Regards |
|
From: bruce x. <bru...@gm...> - 2013-07-25 01:40:01
|
Oh, thx 2013/7/24 Petr Janda <ele...@ex...> > > http://cppcms.com/cppcms_ref/1.0.0/classcppcms_1_1http_1_1request.html#a6f9d8f160c4f6fd0f848389f0ef65df4 > > On 24/07/2013 11:57 AM, bruce xiu wrote: > > Hi, everybody. I want to forbid some IP to access my site dynamically. > > Does cppcms provide this interface? Or, how can I get the IP by cppcms? > > > > > > > > > ------------------------------------------------------------------------------ > > See everything from the browser to the database with AppDynamics > > Get end-to-end visibility with application monitoring from AppDynamics > > Isolate bottlenecks and diagnose root cause in seconds. > > Start your free trial of AppDynamics Pro today! > > > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > > > > > > > > _______________________________________________ > > Cppcms-users mailing list > > Cpp...@li... > > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > > > -- > Please use PGP to encrypt your email to ensure our privacy is respected. > > > > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > -- ZhiXin XIU Computer Science & Engineering Dept., Shanghai Jiao Tong University, 800 Dongchuan Rd., Shanghai, CHINA |
|
From: Petr J. <ele...@ex...> - 2013-07-24 09:40:37
|
http://cppcms.com/cppcms_ref/1.0.0/classcppcms_1_1http_1_1request.html#a6f9d8f160c4f6fd0f848389f0ef65df4 On 24/07/2013 11:57 AM, bruce xiu wrote: > Hi, everybody. I want to forbid some IP to access my site dynamically. > Does cppcms provide this interface? Or, how can I get the IP by cppcms? > > > > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > > > > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > -- Please use PGP to encrypt your email to ensure our privacy is respected. |