Commit graph

6 commits

Author SHA1 Message Date
Marten Seemann
07b8821ef7 use pointer to byte slices in the buffer pool
https://staticcheck.io/docs/staticcheck#SA6002 suggests to use pointers
to objects in the sync.Pool.
2018-02-23 18:57:12 +08:00
Marten Seemann
f1ada87dcf make the protocol package internal 2017-08-30 00:19:44 +07:00
Marten Seemann
1f01904270
read packets with the maximum packet size
fixes #467
2017-03-06 13:02:46 +07:00
Lucas Clemente
0696cd51bf add a buffer pool test for wrong-sized puts 2016-08-06 17:45:32 +02:00
Lucas Clemente
f7801f095a panic when trying to store a wrong-sized buffer in the buffer pool 2016-08-05 11:33:27 +02:00
Lucas Clemente
950e59fa3d add a sync.Pool of byte buffers with maximum packet size as cap
ref #217
2016-07-26 15:36:28 +02:00