This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <string> | |
#include <mutex> | |
#include <thread> | |
#include <future> | |
#include <deque> | |
#include <memory> | |
#include <sstream> | |
#include <nghttp2/asio_http2_server.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <string> | |
#include <mutex> | |
#include <thread> | |
#include <future> | |
#include <deque> | |
#include <nghttp2/asio_http2_server.h> | |
using namespace nghttp2::asio_http2; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iterator> | |
#include <iostream> | |
#include <sstream> | |
#include <string> | |
#include <string.h> | |
#include <memory> | |
#include <sys/time.h> | |
const int maxChunkSize = 32000; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/////////////////////////////////////////////////////////////// | |
// Safe file: allow safe writting of text/binary files. | |
// Close delay configurable. | |
// Max opened files controlled by condition variable. | |
// | |
// LINK: g++ main.cc -l pthread -l boost_system -l boost_thread | |
/////////////////////////////////////////////////////////////// | |
#include <iostream> | |
#include <thread> | |
#include <vector> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
h2a: | |
image: ghcr.io/testillano/h2agent_http1:4.2.5 | |
hostname: h2a | |
#expose: | |
# - "8001" | |
ports: | |
# Ephemeral (use 'docker-compose ps' to see them) |