嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):813200300
本次赞助数额为: 2 元微信扫码支付:2 元
请留下您的邮箱,我们将在2小时内将文件发到您的邮箱
linux下的webserver
增加POST方法,修改线程池,将任务队列的list 改成queue,改进线程池,使线程池能正确的正常的退出,改用互斥量和条件变量来保护任务队列。
Http的响应报文,其中包含Content-Length的属性,客户端接收完之后,会主动关闭连接,而不用服务器关闭,防止大量的TIME_WAIT状态的连接,提高Server的可以性。
.
├── WebServer-master
│ └── WebServer-master
│ ├── CMakeLists.txt
│ ├── LICENSE
│ ├── README.md
│ ├── WebBench
│ │ ├── LICENSE
│ │ ├── Makefile
│ │ ├── README.md
│ │ ├── bin
│ │ │ └── webbench
│ │ ├── build.sh
│ │ ├── debian
│ │ │ ├── changelog
│ │ │ ├── control
│ │ │ ├── copyright
│ │ │ ├── dirs
│ │ │ └── rules
│ │ ├── man
│ │ │ └── man1
│ │ │ └── webbench.1
│ │ ├── share
│ │ │ └── doc
│ │ │ └── webbench
│ │ │ ├── changelog
│ │ │ └── copyright
│ │ ├── socket.c
│ │ ├── tags
│ │ ├── test.sh
│ │ ├── webbench
│ │ ├── webbench.1
│ │ └── webbench.c
│ ├── WebServer
│ │ ├── CMakeLists.txt
│ │ ├── Channel.cpp
│ │ ├── Channel.h
│ │ ├── Epoll.cpp
│ │ ├── Epoll.h
│ │ ├── EventLoop.cpp
│ │ ├── EventLoop.h
│ │ ├── EventLoopThread.cpp
│ │ ├── EventLoopThread.h
│ │ ├── EventLoopThreadPool.cpp
│ │ ├── EventLoopThreadPool.h
│ │ ├── HttpData.cpp
│ │ ├── HttpData.h
│ │ ├── Main.cpp
│ │ ├── Makefile
│ │ ├── Makefile.bak
│ │ ├── Server.cpp
│ │ ├── Server.h
│ │ ├── ThreadPool.cpp
│ │ ├── ThreadPool.h
│ │ ├── Timer.cpp
│ │ ├── Timer.h
│ │ ├── Util.cpp
│ │ ├── Util.h
│ │ ├── base
│ │ │ ├── AsyncLogging.cpp
│ │ │ ├── AsyncLogging.h
│ │ │ ├── CMakeLists.txt
│ │ │ ├── Condition.h
│ │ │ ├── CountDownLatch.cpp
│ │ │ ├── CountDownLatch.h
│ │ │ ├── CurrentThread.h
│ │ │ ├── FileUtil.cpp
│ │ │ ├── FileUtil.h
│ │ │ ├── LogFile.cpp
│ │ │ ├── LogFile.h
│ │ │ ├── LogStream.cpp
│ │ │ ├── LogStream.h
│ │ │ ├── Logging.cpp
│ │ │ ├── Logging.h
│ │ │ ├── Log的设计.txt
│ │ │ ├── MutexLock.h
│ │ │ ├── Thread.cpp
│ │ │ ├── Thread.h
│ │ │ ├── noncopyable.h
│ │ │ └── tests
│ │ │ ├── CMakeLists.txt
│ │ │ └── LoggingTest.cpp
│ │ ├── config.h
│ │ └── tests
│ │ ├── CMakeLists.txt
│ │ └── HTTPClient.cpp
│ ├── build.sh
│ ├── datum
│ │ ├── WebServer.png
│ │ ├── WebServerk.png
│ │ ├── cloc.png
│ │ ├── close.png
│ │ ├── gdb.png
│ │ ├── idle.png
│ │ ├── keepalive.png
│ │ ├── model.png
│ │ ├── muduo.png
│ │ └── muduok.png
│ ├── old_version
│ │ ├── old_version_0.1
│ │ │ ├── Makefile
│ │ │ ├── Makefile1
│ │ │ ├── epoll.cpp
│ │ │ ├── epoll.h
│ │ │ ├── improvement.txt
│ │ │ ├── index.html
│ │ │ ├── main.cpp
│ │ │ ├── requestData.cpp
│ │ │ ├── requestData.h
│ │ │ ├── threadpool.cpp
│ │ │ ├── threadpool.h
│ │ │ ├── util.cpp
│ │ │ └── util.h
│ │ ├── old_version_0.2
│ │ │ ├── Makefile
│ │ │ ├── Makefile1
│ │ │ ├── epoll.cpp
│ │ │ ├── epoll.h
│ │ │ ├── favicon.ico
│ │ │ ├── improvement.txt
│ │ │ ├── index.html
│ │ │ ├── main.cpp
│ │ │ ├── requestData.cpp
│ │ │ ├── requestData.h
│ │ │ ├── threadpool.cpp
│ │ │ ├── threadpool.h
│ │ │ ├── util.cpp
│ │ │ └── util.h
│ │ ├── old_version_0.3
│ │ │ ├── Makefile
│ │ │ ├── Makefile1
│ │ │ ├── config.h
│ │ │ ├── epoll.cpp
│ │ │ ├── epoll.h
│ │ │ ├── favicon.ico
│ │ │ ├── improvement.txt
│ │ │ ├── index.html
│ │ │ ├── main.cpp
│ │ │ ├── requestData.cpp
│ │ │ ├── requestData.h
│ │ │ ├── threadpool.cpp
│ │ │ ├── threadpool.h
│ │ │ ├── util.cpp
│ │ │ └── util.h
│ │ ├── old_version_0.4
│ │ │ ├── Makefile
│ │ │ ├── Makefile1
│ │ │ ├── base
│ │ │ │ ├── mutexLock.hpp
│ │ │ │ └── nocopyable.hpp
│ │ │ ├── config.h
│ │ │ ├── epoll.cpp
│ │ │ ├── epoll.h
│ │ │ ├── favicon.ico
│ │ │ ├── improvement.txt
│ │ │ ├── index.html
│ │ │ ├── main.cpp
│ │ │ ├── requestData.cpp
│ │ │ ├── requestData.h
│ │ │ ├── threadpool.cpp
│ │ │ ├── threadpool.h
│ │ │ ├── timer.cpp
│ │ │ ├── timer.h
│ │ │ ├── util.cpp
│ │ │ └── util.h
│ │ ├── old_version_0.5
│ │ │ ├── Makefile
│ │ │ ├── Makefile1
│ │ │ ├── base
│ │ │ │ ├── condition.hpp
│ │ │ │ ├── mutexLock.hpp
│ │ │ │ └── nocopyable.hpp
│ │ │ ├── config.h
│ │ │ ├── epoll.cpp
│ │ │ ├── epoll.h
│ │ │ ├── favicon.ico
│ │ │ ├── index.html
│ │ │ ├── main.cpp
│ │ │ ├── requestData.cpp
│ │ │ ├── requestData.h
│ │ │ ├── threadpool.cpp
│ │ │ ├── threadpool.h
│ │ │ ├── timer.cpp
│ │ │ ├── timer.h
│ │ │ ├── util.cpp
│ │ │ └── util.h
│ │ └── old_version_0.6
│ │ ├── AsyncLogging.cpp
│ │ ├── AsyncLogging.h
│ │ ├── Condition.h
│ │ ├── CountDownLatch.cpp
│ │ ├── CountDownLatch.h
│ │ ├── CurrentThread.hpp
│ │ ├── FileUtil.cpp
│ │ ├── FileUtil.h
│ │ ├── LogFile.cpp
│ │ ├── LogFile.h
│ │ ├── LogStream.cpp
│ │ ├── LogStream.h
│ │ ├── Logging.cpp
│ │ ├── Logging.h
│ │ ├── Makefile
│ │ ├── Makefile1
│ │ ├── MutexLock.h
│ │ ├── Thread.cpp
│ │ ├── Thread.h
│ │ ├── config.h
│ │ ├── epoll.cpp
│ │ ├── epoll.h
│ │ ├── favicon.ico
│ │ ├── index.html
│ │ ├── main.cpp
│ │ ├── noncopyable.h
│ │ ├── requestData.cpp
│ │ ├── requestData.h
│ │ ├── threadpool.cpp
│ │ ├── threadpool.h
│ │ ├── timer.cpp
│ │ ├── timer.h
│ │ ├── util.cpp
│ │ └── util.h
│ ├── 并发模型.md
│ ├── 版本历史.md
│ ├── 项目目的.md
│ ├── 测试及改进.md
│ ├── 连接的维护.md
│ └── 遇到的困难.md
└── linux下的webserver.rar
24 directories, 203 files