Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 1454838 Details for
Bug 1595470
h2-client.cpp:32:83: internal compiler error: in make_decl_rtl, at varasm.c:1322
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
source code
h2-client.cpp (text/x-csrc), 1.67 KB, created by
Gene Hightower
on 2018-06-27 00:11:30 UTC
(
hide
)
Description:
source code
Filename:
MIME Type:
Creator:
Gene Hightower
Created:
2018-06-27 00:11:30 UTC
Size:
1.67 KB
patch
obsolete
>#include <iostream> > >#include <fmt/format.h> > >#include <nghttp2/asio_http2_client.h> > >using boost::asio::ip::tcp; > >using namespace nghttp2::asio_http2; >using namespace nghttp2::asio_http2::client; > >int main(int argc, char* argv[]) >{ > boost::system::error_code ec; > boost::asio::io_service io_service; > > boost::asio::ssl::context tls(boost::asio::ssl::context::sslv23); > tls.set_default_verify_paths(); > > tls.set_verify_mode(boost::asio::ssl::verify_peer); > > configure_tls_context(ec, tls); > > auto constexpr server = "digilicious.com"; > auto constexpr port = "443"; > > session sess(io_service, tls, server, port); > > sess.on_connect([&sess](tcp::resolver::iterator endpoint_it) { > boost::system::error_code ec; > > auto const url > = fmt::format("https://{}:{}/.well-known/mta-sts.txt", server, port); > > auto req = sess.submit(ec, "GET", url); > > req->on_response([&sess](const response& res) { > std::cerr << "response received!" << std::endl; > res.on_data([&sess](const uint8_t* data, std::size_t len) { > std::cerr.write(reinterpret_cast<const char*>(data), len); > std::cerr << std::endl; > }); > }); > > req->on_push([](const request& push) { > std::cerr << "push request received!" << std::endl; > push.on_response([](const response& res) { > std::cerr << "push response received!" << std::endl; > res.on_data([](const uint8_t* data, std::size_t len) { > std::cerr.write(reinterpret_cast<const char*>(data), len); > std::cerr << std::endl; > }); > }); > }); > }); > > sess.on_error([](const boost::system::error_code& ec) { > std::cerr << "error: " << ec.message() << std::endl; > }); > > io_service.run(); >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1595470
: 1454838 |
1454839