You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The example of "asiohiper" cause exception on win7 #2407
trying to run asiohiper,when I set a invalid systerm proxy by some tools(proxifier on my pc), it must cause crash!
when the systerm proxy is valid it works well!
I expected the following
curl/libcurl version
7.52.1
[curl -V output]
These are asiohiper outputs, call stack in the attachment
timer_cb:
multi_timer_cb: timeout_ms 2
REMAINING: 1
timer_cb:
multi_timer_cb: timeout_ms 2
REMAINING: 1
timer_cb:
multi_timer_cb: timeout_ms 2
REMAINING: 1
timer_cb:
multi_timer_cb: timeout_ms 2
REMAINING: 1
timer_cb:
multi_timer_cb: timeout_ms 2
REMAINING: 1
timer_cb:
opensocket :
Opened socket 148* Trying 46.82.174.68...
TCP_NODELAY set
sock_cb: socket=148, what=2, sockp=00000000
socket callback: s=148 e=003320A8 what=OUT
Adding data: OUT
setsock: socket=148, act=2, fdp=003285C0
watching for socket to become writable
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
I think the problem with that example exists exactly because nobody with knowledge about both asio and libcurl has taken a proper look at it. I know next to nothing about asio myself and I'm sorry but fixing up that example is very low on my personal TODO list.
Scratch that, I managed to reproduce the crash, but only when you try proxying access to 127.0.0.1 with Proxifier (whether the actual proxy works or not doesn't seem to matter) (why would anyone actually do that?).
It seems that the crash happens because async_write_some expects the socket to not be in an errored state already. I added a kludge here that seems to help but I'm not entirely sure that it's a good solution or that it doesn't introduce other problems.
Activity
cimstu commentedon Mar 26, 2018
anyone help?
i tried asiohiper example on vs2017 , it' s still crash!
bagder commentedon Mar 26, 2018
Set a break-point and figure out what's wrong?
cimstu commentedon Mar 27, 2018
I know little about asio, so even i got the call stacks i can do nothing
so I want a health and strong example.
bagder commentedon Mar 28, 2018
I think the problem with that example exists exactly because nobody with knowledge about both asio and libcurl has taken a proper look at it. I know next to nothing about asio myself and I'm sorry but fixing up that example is very low on my personal TODO list.
virtulis commentedon Aug 24, 2018
I'm trying to reproduce this and failing.
Which Boost version are you using? Could it be one released before this commit?
boostorg/asio@a50a350#diff-52db8b158e9995dce1dbce6c9ed95425
virtulis commentedon Aug 24, 2018
Scratch that, I managed to reproduce the crash, but only when you try proxying access to 127.0.0.1 with Proxifier (whether the actual proxy works or not doesn't seem to matter) (why would anyone actually do that?).
virtulis commentedon Aug 24, 2018
It seems that the crash happens because
async_write_someexpects the socket to not be in an errored state already. I added a kludge here that seems to help but I'm not entirely sure that it's a good solution or that it doesn't introduce other problems.https://github.com/virtulis/curl/commit/c874ca9fa5835604a3ba71c3b6cbfff9dd199824
bagder commentedon Aug 24, 2018
@cimstu does that fix your issue?