Gracefully close the stream
                  
                  
                      beast::error_code ec;
                  
                  
                      stream_->shutdown(ec);
                  
                  
                      if (ec == net::error::eof || ((ec.category() == boost::asio::error::get_ssl_category()) && (ec.value() == boost::asio::ssl::error::stream_truncated))) {
                  
                  
                          // Rationale:
                  
                  
                          // http://stackoverflow.com/questions/25587403/boost-asio-ssl-async-shutdown-always-finishes-with-an-error
                  
                  
                          std::cerr << "httpsstream::close error: " << ec.message() << std::endl;
                  
                  
                          ec.assign(0, ec.category());
                  
                  
                      }
                  
                  
                      if (ec)
                  
                  
                          throw beast::system_error{ec};
                  
                  
                      // If we get here then the connection is closed gracefully
                  
                  
                      
                  
                  
                      stream_.reset();
                  
                  
                  } `
                  
                  
                  
                  
                  
                  на маке все работает на убунту получаю исключение stream truncated
                  
                  
                
Причем я вроде отлавливаю эту ошибку .... Не могу также найти список все ошибок asio и констант чтобы их поймать
Обсуждают сегодня