added checks for active flag to prevent successive writev fails

This commit is contained in:
Roman Arutyunyan 2012-03-20 09:40:36 +04:00
parent d641811545
commit f925fd0bc6
2 changed files with 6 additions and 8 deletions

10
TODO
View file

@ -1,8 +1,8 @@
- fix time wrapping problem (% 0x00ffffff)
- add support of flv file streaming
- compile in release configuration
- add RTMP authorization
- add RTMP authorization (SecureToken)
- remove macros hell from ngx_rtmp_send.c
@ -10,7 +10,3 @@
- shortcuts for big-endian copy
- implement loc confs (=fms apps)
loc options:
- broadcast/file
- HTTP callbacks on invoke calls

View file

@ -1046,7 +1046,9 @@ ngx_rtmp_send_message(ngx_rtmp_session_t *s, ngx_chain_t *out,
qbytes, nbytes, qbufs, nbufs, priority,
c->write->ready, c->write->active);
ngx_rtmp_send(c->write);
if (!c->write->active) {
ngx_rtmp_send(c->write);
}
return c->destroyed ? NGX_ERROR : NGX_OK;
}