]> git.ipfire.org Git - thirdparty/asterisk.git/commit
http: response body often missing after specific request
authorScott Griepentrog <sgriepentrog@digium.com>
Fri, 28 Mar 2014 16:17:52 +0000 (16:17 +0000)
committerScott Griepentrog <sgriepentrog@digium.com>
Fri, 28 Mar 2014 16:17:52 +0000 (16:17 +0000)
commited2452a9a53a0d371cb7a34f858e21593a3ac1b8
treeeb0c57f6e1bfc8fa509184de51402bdcfcf9abac
parent833d37a15ec5fe2955bd979cf5ebc24d6809d46e
http: response body often missing after specific request

This patch works around a problem with the HTTP body
being dropped from the response to a specific client
and under specific circumstances:

a) Client request comes from node.js user agent
   "Shred" via use of swagger-client library.

b) Asterisk and Client are *not* on the same
   host or TCP/IP stack

In testing this problem, it has been determined that
the write of the HTTP body is lost, even if the data
is written using low level write function.  The only
solution found is to instruct the TCP stack with the
shutdown function to flush the last write and finish
the transmission.  See review for more details.

ASTERISK-23548 #close
(closes issue ASTERISK-23548)
Reported by: Sam Galarneau
Review: https://reviewboard.asterisk.org/r/3402/
........

Merged revisions 411462 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 411463 from http://svn.asterisk.org/svn/asterisk/branches/11

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@411465 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/http.c
main/manager.c
main/tcptls.c