Commit e2df2ad
committed
Fix insufficient UDP buffer size, add byte count log
The previous buffer size of 1024 meant that data would be dropped for
UDP packets larger than 1024 bytes, since each ReadFromUDP dequeues the
entire packet (no partial reads to be continue on the next call like in
TCP; i.e. TCP buffers bytes, UDP buffers whole packets).1 parent 94fe4ae commit e2df2ad
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
42 | 47 | | |
43 | 48 | | |
44 | 49 | | |
| |||
48 | 53 | | |
49 | 54 | | |
50 | 55 | | |
| 56 | + | |
51 | 57 | | |
52 | 58 | | |
53 | 59 | | |
| |||
0 commit comments