suxunbin

Results 18 comments of suxunbin

![4](https://user-images.githubusercontent.com/22476651/38935660-6a5c1052-430e-11e8-8e29-4e2c0e334c00.png) ![6](https://user-images.githubusercontent.com/22476651/38935668-701c998a-430e-11e8-8026-767935034f73.jpg) ![7](https://user-images.githubusercontent.com/22476651/38935674-73af335a-430e-11e8-95e8-cd8038eaaf75.png) ![8](https://user-images.githubusercontent.com/22476651/38935681-7779a4de-430e-11e8-8096-29858b8d4062.jpg) ![10](https://user-images.githubusercontent.com/22476651/38935707-88d93668-430e-11e8-8818-1b6333122651.png) ![12](https://user-images.githubusercontent.com/22476651/38935723-8de26846-430e-11e8-92bc-4b6bf6237735.png) Part of ghttp.cpp

shared_ptr is Ok But shared_ptr is no use when I use pointer assignment

![1](https://user-images.githubusercontent.com/22476651/38936039-6787159c-430f-11e8-916d-135672be5f4f.jpg)

Yes,I want to store the Res object in order to use it after the handler. And I find maybe connection between server and client is not broken. But only *response...

This is the Response's define in server_http.hpp ![qq 20180419113348](https://user-images.githubusercontent.com/22476651/38969996-9e41287a-4382-11e8-8d4c-5c58b522e132.png)

[server_http.txt](https://github.com/eidheim/Simple-Web-Server/files/1926884/server_http.txt)

This is the server_http.hpp that I used. *response will send the data to the client itself,will it?

Actually,I'm writing a threadpool. ![1](https://user-images.githubusercontent.com/22476651/38979909-10a554de-43ee-11e8-8238-5c27b0569329.PNG) pool.create() create a daemon thread to continuously get task from tasklines and run query_thread(). Where, tasklines is a global variable ![3](https://user-images.githubusercontent.com/22476651/38979914-142adbe2-43ee-11e8-9aa0-90b0e574f8f6.PNG) ![2](https://user-images.githubusercontent.com/22476651/38979922-16b3e124-43ee-11e8-896c-5acb3a734e3f.PNG) ![4](https://user-images.githubusercontent.com/22476651/38979933-1bee74d8-43ee-11e8-9c5f-55745b93b0ae.PNG) ![5](https://user-images.githubusercontent.com/22476651/38979937-1e8e1888-43ee-11e8-9a99-e0e136f27982.PNG) However,...

When I am in query_handler() scope,obviously the response and request object are valid wherever they are referred(for example, Task , tasklines, the daemon thread). However, when I leave query_handler() scope,...

![3](https://user-images.githubusercontent.com/22476651/38987510-a9b1cf2c-4402-11e8-9377-0dd256ee9298.PNG) Can I have a way that when I leave the scope,the response and request object are still alive? I hope that server.resource doesn't destroy the response and request object...