]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Fix WebRTC over WSS not working
authorMoises Silva <moises.silva@gmail.com>
Wed, 5 Mar 2014 01:27:13 +0000 (01:27 +0000)
committerMoises Silva <moises.silva@gmail.com>
Wed, 5 Mar 2014 01:27:13 +0000 (01:27 +0000)
commit25f0cd3e7d9e3a8ce2bfeda92e6e397797939769
tree6235115ea8a6e4f223cf6a63452cbb10e23a38c5
parent2b5d779807177491c5a97dd9db64eaeb37f367f3
Fix WebRTC over WSS not working

Several fixes for the WebSockets implementation in res/res_http_websocket.c

* Flush the websocket session FILE* as fwrite() may not actually guarantee sending
  the data to the network. If we do not flush, it seems that buffering on the SSL
  socket for outbound messages causes issues

* Refactored ast_websocket_read to take into account that SSL file descriptors
  may be ready to read via fread() but poll() will not actually say so because
  the data was already read from the network buffers and is now in the libc buffers

(closes issue ASTERISK-23099)
(closes issue ASTERISK-21930)
Review: https://reviewboard.asterisk.org/r/3248/
........

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

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@409697 65c4cc65-6c06-0410-ace0-fbb531ad65f3
res/res_http_websocket.c