Files
firecgi/connection_afl.cc

19 lines
426 B
C++
Raw Normal View History

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