Files
firecgi/connection_afl.cc

21 lines
458 B
C++
Raw Normal View History

2019-05-04 23:46:26 -07:00
#include "connection.h"
int main(int argc, char* argv[]) {
2019-05-18 12:15:11 -07:00
FLAGS_logtostderr = 1;
FLAGS_minloglevel = 3;
google::InitGoogleLogging(argv[0]);
gflags::ParseCommandLineFlags(&argc, &argv, true);
2019-05-04 23:46:26 -07:00
2019-05-18 12:15:11 -07:00
{
firecgi::Connection conn(
STDIN_FILENO, {}, [](firecgi::Request* req) { req->End(); }, {},
16 * 1024);
static_cast<void>(conn.Read());
}
2019-05-04 23:46:26 -07:00
2019-05-18 12:15:11 -07:00
gflags::ShutDownCommandLineFlags();
google::ShutdownGoogleLogging();
2019-05-04 23:46:26 -07:00
2019-05-18 12:15:11 -07:00
return 0;
2019-05-04 23:46:26 -07:00
}