Skip to content

Commit 949c80e

Browse files
committed
Threads-RECV: Change UDP recv max size from 6k to 1500 bytes.
1 parent 198dca5 commit 949c80e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

trunk/src/app/srs_app_listener.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ SrsPps* _srs_pps_fast_addrs = new SrsPps();
5454
SrsPps* _srs_pps_spkts = new SrsPps();
5555

5656
// set the max packet size.
57-
#define SRS_UDP_MAX_PACKET_SIZE 65535
57+
const int SRS_UDP_MAX_PACKET_SIZE = 1500;
5858

5959
// sleep in srs_utime_t for udp recv packet.
6060
#define SrsUdpPacketRecvCycleInterval 0

0 commit comments

Comments
 (0)