[ 
https://issues.apache.org/jira/browse/TS-1611?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14384598#comment-14384598
 ] 

Kit Chan commented on TS-1611:
------------------------------

1) Should we use TSError instead of ee() for reporting error?

2) Am I correct that there is no backward incompatibility? There are additional 
API such as fetch and fetch_multi. And then there are enhancements to existing 
api (transform/intercept). But those enhancements are backward compatible. 
Right?

3) Are all the fetch api blocking? Of course I have to wait for the response to 
come back before the next lua line is executed. But during the wait, do we no 
longer hold onto the thread so it can go and execute other stuff?  

4) The fetch api (essesntialy using TSFetch* TS apis) does not seem to support 
streaming mode. Do you think it is necessary to support that or not?

I have compiled and run your test example lua scripts. I also run my own 
application for a short while without problem. I think if we clarify the 
questions I have above, it should be good to be merged. Only stuff I need to do 
is just to run it through clang-format before committing.

Thanks

> async http request in lua remap plugin
> --------------------------------------
>
>                 Key: TS-1611
>                 URL: https://issues.apache.org/jira/browse/TS-1611
>             Project: Traffic Server
>          Issue Type: Improvement
>          Components: Lua, Plugins
>            Reporter: Luca Rea
>            Assignee: Kit Chan
>             Fix For: sometime
>
>         Attachments: 
> 0001-TS-1611-async-http-request-in-lua-remap-plugin.patch, 
> 0002-TS-1611-add-ts_lua_constant.c.patch, 
> 0003-TS-1611-refine-doc-for-ts_lua.patch
>
>
> Hi,
> can you add support for async http requests in lua remap plugin please?
> Thank you



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to