tags:

views:

161

answers:

1
+1  A: 

Sorry never mind this question, lua_resume return 2 mean error but script work just fine, asio get page work fine too, and I tracked down the line that respond for fail of lua_resume :

httpinfo.header.append(buffer, (HeaderEndIndex-buffer+2) );

if I comment that line lua_resume work as expected it return 0 mean script exit, this line don't do any thing that can affect the lua thread state it just a string assign, I checked there no overflow. so weird.

Nhu Phuong
Glad it's sorted. You can accept your own answer so that others know it's done.
John Zwinck