Title: Crash with client::get on connection refused · Issue #870 · cpp-netlib/cpp-netlib · GitHub
Open Graph Title: Crash with client::get on connection refused · Issue #870 · cpp-netlib/cpp-netlib
X Title: Crash with client::get on connection refused · Issue #870 · cpp-netlib/cpp-netlib
Description: Greetings! I'm seeing a segmentation fault when attempting to use the following code on a HTTPS URL that is returning a "connection refused" error. GDB RESULTS: terminate called after throwing an instance of 'boost::exception_detail::clo...
Open Graph Description: Greetings! I'm seeing a segmentation fault when attempting to use the following code on a HTTPS URL that is returning a "connection refused" error. GDB RESULTS: terminate called after throwing an i...
X Description: Greetings! I'm seeing a segmentation fault when attempting to use the following code on a HTTPS URL that is returning a "connection refused" error. GDB RESULTS: terminate called after...
Opengraph URL: https://github.com/cpp-netlib/cpp-netlib/issues/870
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Crash with client::get on connection refused","articleBody":"Greetings! I'm seeing a segmentation fault when attempting to use the following code on a HTTPS URL that is returning a \"connection refused\" error. \r\n\r\nGDB RESULTS:\r\nterminate called after throwing an instance of 'boost::exception_detail::clone_impl\u003cboost::system::system_error>'\r\n what(): Connection refused\r\n[New Thread 0x7ffedeffd700 (LWP 30879)]\r\n\r\n\r\n(gdb) bt\r\n#0 0x00007fffe8f85428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54\r\n#1 0x00007fffe8f8702a in __GI_abort () at abort.c:89\r\n#2 0x00007fffe98c884d in __gnu_cxx::__verbose_terminate_handler() ()\r\n from /usr/lib/x86_64-linux-gnu/libstdc++.so.6\r\n#3 0x00007fffe98c66b6 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6\r\n#4 0x00007fffe98c6701 in std::terminate() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6\r\n#5 0x00007fffe98f1d38 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6\r\n#6 0x00007fffe9bc26ba in start_thread (arg=0x7ffef4ff9700) at pthread_create.c:333\r\n#7 0x00007fffe905741d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109\r\n\r\n\r\nSAMPLE CODE:\r\n boost::network::http::client::response l_httpResponse;\r\n\r\n try\r\n {\r\n boost::network::http::client l_httpClient;\r\n\r\n std::string l_url = \"http://127.0.0.1:9001/\" // make sure this returns connection refused on a telnet attempt\r\n\r\n boost::network::http::client::request l_httpRequest(l_url);\r\n\r\n l_httpResponse = l_httpClient.get(l_httpRequest);\r\n\r\n l_success = true;\r\n }\r\n catch (...)\r\n {\r\n l_success = false;\r\n }\r\n","author":{"url":"https://github.com/eturner303","@type":"Person","name":"eturner303"},"datePublished":"2019-02-20T01:25:33Z","url":"https://github.com/cpp-netlib/cpp-netlib/issues/870"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e2c0e1f2-1c90-a380-352c-abd703e2a3bf |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9B42:3BCC2A:6F8D2:A15FD:6AFDC669 |
| html-safe-nonce | d96acae6ff0c6987d616be37c25883df8284c1a49c89be146b66a4715e2839c0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QjQyOjNCQ0MyQTo2RjhEMjpBMTVGRDo2QUZEQzY2OSIsInZpc2l0b3JfaWQiOiIxNDY3MDYzNDM3NDMwMjEyMjAxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | b0a396376254221917a00daffbb54ee52e98b28772d6881ad67bdda934e3f22b |
| hovercard-subject-tag | issue:412200925 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/cpp-netlib/cpp-netlib/870/issue_layout |
| twitter:image | https://opengraph.githubassets.com/43d674932d48aeecaeb703ae84e95a52921d575098cd8a83671694cb0b19ada4/cpp-netlib/cpp-netlib/issues/870 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/43d674932d48aeecaeb703ae84e95a52921d575098cd8a83671694cb0b19ada4/cpp-netlib/cpp-netlib/issues/870 |
| og:image:alt | Greetings! I'm seeing a segmentation fault when attempting to use the following code on a HTTPS URL that is returning a "connection refused" error. GDB RESULTS: terminate called after throwing an i... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | eturner303 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9ab00cc3b4fa90bbd3da70765dd38efc23cfa9d9b0930e41feea2bf67f60ecaf |
| turbo-cache-control | no-preview |
| go-import | github.com/cpp-netlib/cpp-netlib git https://github.com/cpp-netlib/cpp-netlib.git |
| octolytics-dimension-user_id | 192422 |
| octolytics-dimension-user_login | cpp-netlib |
| octolytics-dimension-repository_id | 494068 |
| octolytics-dimension-repository_nwo | cpp-netlib/cpp-netlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | true |
| octolytics-dimension-repository_parent_id | 469399 |
| octolytics-dimension-repository_parent_nwo | glynos/cpp-netlib |
| octolytics-dimension-repository_network_root_id | 469399 |
| octolytics-dimension-repository_network_root_nwo | glynos/cpp-netlib |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 1b795ba060b92691fc16c5a12cf2bf95e83432b4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width