[asterisk-bugs] [JIRA] (ASTERISK-23548) POST to ARI sometimes returns no body on success

Scott Griepentrog (JIRA) noreply at issues.asterisk.org
Fri Mar 28 12:16:18 CDT 2014


    [ https://issues.asterisk.org/jira/browse/ASTERISK-23548?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=216904#comment-216904 ] 

Scott Griepentrog commented on ASTERISK-23548:
----------------------------------------------

Note for historical purposes:

Setting TCP_NODELAY on the socket also resolves this problem.  That indicates that the issue is clearly that close() is not (under very special circumstances) flushing the data in the output stream buffer prior to TCP FIN.  Although the shutdown() sequence was also added to manager which uses TCP_NODELAY, there is no negative side effects to leaving it there as well.


> POST to ARI sometimes returns no body on success
> ------------------------------------------------
>
>                 Key: ASTERISK-23548
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-23548
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>    Affects Versions: 12.0.0
>         Environment: Ubuntu server 12.04 32bit running Asterisk 12 at rev 410918
>            Reporter: Scott Griepentrog
>            Assignee: Scott Griepentrog
>         Attachments: create_bridge.js, DumpFile01.pcap
>
>   Original Estimate: 0.5d
>  Remaining Estimate: 0.5d
>
> When sending a POST to ARI using Node.js (chunked encoding), the response sometimes contains no body for operations that should return a json representation of the created resource even though the response code shows that the operation was a success.
> Running a test Node.js script shows that this is intermittent. This happens on my system roughly 25% of the time I make a call to create a resource.
> I have seen this issue when attempting to create a bridge or when calling play on a channel.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list