Skip to content
This repository was archived by the owner on Dec 18, 2018. It is now read-only.

Commit e237112

Browse files
committed
Initialize UvWriteReq pins size
1 parent 29f9f52 commit e237112

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.AspNet.Server.Kestrel/Networking/UvWriteReq.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public class UvWriteReq : UvRequest
2222
private object _state;
2323
private const int BUFFER_COUNT = 4;
2424

25-
private List<GCHandle> _pins = new List<GCHandle>();
25+
private List<GCHandle> _pins = new List<GCHandle>(BUFFER_COUNT + 1);
2626

2727
public UvWriteReq(IKestrelTrace logger) : base(logger)
2828
{

0 commit comments

Comments
 (0)