提高:: ASIO握手通过HTTP代理? [英] boost::asio handshake through http proxy?

查看:337
本文介绍了提高:: ASIO握手通过HTTP代理?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

很新的提高和ASIO,需要帮助:

Quite new to boost and asio, need help:


  1. 连接到代理
    ASIO ::知识产权:: TCP ::插座插口_;

发送CONNECT主持人:SSL服务器到代理
收到响应200

send CONNECT host: ssl server to the proxy receive response 200

试握手
sslsocket_.async_handshake(ASIO :: SSL :: stream_base ::客户,提高::绑定(安培;客户:: handle_handshake,对此,ASIO ::占位符::错误));

和获得asio.ssl错误
Wireshark的:主机握手的第一个消息后发送FIN

and get asio.ssl error Wireshark: host sends FIN after 1st message of handshake

直接异步连接SSL服务器正常工作,同样通过Proxifier

Direct async connection to ssl server works fine, same through Proxifier

推荐答案

忘了提及,正在运行的VMplayer与NAT网络的应用;桥接删除与初始握手的问题,但有时会重新连接后,看到了同样的消息;
使用山姆的链接方法得到了意外记录握手期间 - 谷歌在此错误有关重新谈判表示,但事实并非如此;挖掘到的OpenSSL来源:新的连接使用相同的BIO读取和recevied应用程序数据从previous连接
不知道如何重置与ASIO的SSL结构,从而为动态分配插座新|删除

Forgot to mention that was running the application in VMplayer with NAT network; bridged removed the problem with initial handshake but sometimes after reconnect saw the same message; using the method in Sam's link got to "unexpected record" during handshake - google said on this error about renegotiations but that was not the case; digging into sources of OpenSSL: the new connection used the same BIO for reading and recevied application data from previous connection Don't know how to reset the SSL structure with asio, so made dynamic socket allocation with new|delete

这篇关于提高:: ASIO握手通过HTTP代理?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆