toft
toft copied to clipboard
C++ Base Library for serverside development
net/http 下面的http server实现不完整?只是一个demo
Lock-free thread pool to achive higher performance Add: (1) lock-free queue (2) replace list and mutex with lock-free queue in thread pool
1. ReadLine函数中,如果文件中有\0(例如hive导出的文件会用\0作分割符),则\0后的数据会被截断丢弃。 2. max_size比较大时,ReadLine函数性能极差,大部分时间都花在resize操作中,将后边的内存memset为0的过程中了。 问题1可以直接修复。 问题2我认为可能是接口设计的问题,目前的接口下要么得多一次内存拷贝,要么得像现在这样在读取前进行resize,所以,我认为可能需要改File基类,添加一个bool LocalFile::ReadLine(StringPiece* line, size_t max_size)的接口。 不知道各位commiter认为是否可以按我说的方案修复。
您好~ 在使用toft的过程中,发现在包含了 ```toft/system/base/socket.h``` 这个头文件时,如果不依赖 ```toft/system/base:socket``` 的话,即使不使用这个头文件中定义的任何内容,比如: ```c++ main.cpp #include "toft/system/base/socket.h" int main() { return 0; } ``` 也会报 ``` sh undefined reference to `toft::Socket::Close()' ``` 这样的错误。 看起来和 ```toft::Socket``` 的析构函数是 inline...
如题,这个http client:toft/net/http/client.h,似乎不支持https?
为什么我编译toft库编译不了呢?提示上面的错误,陈老师麻烦看看
port mru_cache from chromium project
add proto_util.h for some protobuf utility functions
port domain util from chromium project