Skip to content

Commit

Permalink
rtmp: bufio using pio size
Browse files Browse the repository at this point in the history
  • Loading branch information
nareix committed Jul 30, 2016
1 parent f9d7cb8 commit cb534aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions format/rtmp/rtmp.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,8 @@ func NewConn(netconn net.Conn) *Conn {
conn.readcsmap = make(map[uint32]*chunkStream)
conn.readMaxChunkSize = 128
conn.writeMaxChunkSize = 128
conn.bufr = bufio.NewReaderSize(netconn, 2048)
conn.bufw = bufio.NewWriterSize(netconn, 2048)
conn.bufr = bufio.NewReaderSize(netconn, pio.RecommendBufioSize)
conn.bufw = bufio.NewWriterSize(netconn, pio.RecommendBufioSize)
conn.writebuf = make([]byte, 4096)
conn.readbuf = make([]byte, 4096)
return conn
Expand Down

0 comments on commit cb534aa

Please sign in to comment.