1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

for #320, refine code.

This commit is contained in:
winlin 2015-03-03 17:28:07 +08:00
parent 34d6a2ece5
commit a47dbf7a92
2 changed files with 4 additions and 2 deletions

View file

@ -1129,10 +1129,10 @@ void SrsRtmpConn::change_mw_sleep(int sleep_ms)
void SrsRtmpConn::play_set_sock_options()
{
int fd = st_netfd_fileno(stfd);
#ifdef SRS_PERF_TCP_NODELAY
if (true) {
int fd = st_netfd_fileno(stfd);
socklen_t nb_v = sizeof(int);
int ov = 0;

View file

@ -88,6 +88,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// generated by configure.
#include <srs_auto_headers.hpp>
// important performance options.
#include <srs_core_performance.hpp>
// free the p and set to NULL.
// p must be a T*.