| 206 | } |
| 207 | |
| 208 | void runtime::set_curl_post_result_options() |
| 209 | { |
| 210 | curl_easy_reset(m_curl_handle); |
| 211 | curl_easy_setopt(m_curl_handle, CURLOPT_TIMEOUT, 0L); |
| 212 | curl_easy_setopt(m_curl_handle, CURLOPT_CONNECTTIMEOUT, 1L); |
| 213 | curl_easy_setopt(m_curl_handle, CURLOPT_NOSIGNAL, 1L); |
| 214 | curl_easy_setopt(m_curl_handle, CURLOPT_TCP_NODELAY, 1L); |
| 215 | curl_easy_setopt(m_curl_handle, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
| 216 | |
| 217 | curl_easy_setopt(m_curl_handle, CURLOPT_POST, 1L); |
| 218 | curl_easy_setopt(m_curl_handle, CURLOPT_READFUNCTION, read_data); |
| 219 | curl_easy_setopt(m_curl_handle, CURLOPT_WRITEFUNCTION, write_data); |
| 220 | curl_easy_setopt(m_curl_handle, CURLOPT_HEADERFUNCTION, write_header); |
| 221 | |
| 222 | curl_easy_setopt(m_curl_handle, CURLOPT_PROXY, ""); |
| 223 | |
| 224 | #ifndef NDEBUG |
| 225 | curl_easy_setopt(m_curl_handle, CURLOPT_VERBOSE, 1); |
| 226 | curl_easy_setopt(m_curl_handle, CURLOPT_DEBUGFUNCTION, rt_curl_debug_callback); |
| 227 | #endif |
| 228 | } |
| 229 | |
| 230 | runtime::next_outcome runtime::get_next() |
| 231 | { |
nothing calls this directly
no outgoing calls
no test coverage detected