{"action":"closed","number":34,"pull_request":{"created_at":"2011-12-10T14:10:18Z","review_comments":0,"state":"closed","patch_url":"https://github.com/zeromq/clrzmq2/pull/34.patch","changed_files":1,"_links":{"review_comments":{"href":"https://api.github.com/repos/zeromq/clrzmq2/pulls/34/comments"},"comments":{"href":"https://api.github.com/repos/zeromq/clrzmq2/issues/34/comments"},"html":{"href":"https://github.com/zeromq/clrzmq2/pull/34"},"self":{"href":"https://api.github.com/repos/zeromq/clrzmq2/pulls/34"}},"updated_at":"2011-12-11T21:53:36Z","issue_url":"https://github.com/zeromq/clrzmq2/issues/34","user":{"gravatar_id":"c66daedbfd582bf11e4f35c3ef95658f","id":141683,"url":"https://api.github.com/users/fholm","avatar_url":"https://secure.gravatar.com/avatar/c66daedbfd582bf11e4f35c3ef95658f?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"fholm"},"comments":4,"merged":true,"body":"Added an overload to the Socket.Recv method which has the signature `byte[] Recv(byte[] message, out int size, params SendRecvOpt[] flags)` to allow a `byte[]` to be supplied to the `Recv` function, and if it has enough space that buffer will be used instead of allocating a new `byte[]` constantly which causes a lot of pressure on the GC during high frequency messaging.\r\n\r\nThe supplied `message` parameter will only be used if two conditions are met: \r\n\r\n * It's not null\r\n * It's `Length` property is larger then or equal to the size of the message\r\n\r\nThe size of the read message is also passed out through the `out int size` parameter so that in the case of using a `message` parameter which is larger then the message returned there is a way to find out how many bytes of the array that the message occupies.","deletions":15,"commits":10,"mergeable":null,"id":580329,"base":{"repo":{"pushed_at":"2011-12-11T21:53:35Z","created_at":"2010-11-08T12:42:50Z","clone_url":"https://github.com/zeromq/clrzmq2.git","private":false,"updated_at":"2011-12-11T21:53:36Z","watchers":69,"name":"clrzmq2","svn_url":"https://svn.github.com/zeromq/clrzmq2","master_branch":null,"forks":17,"language":"C#","owner":{"gravatar_id":"810f6c181bb9cf3dea392892bac793f0","id":109777,"url":"https://api.github.com/users/zeromq","avatar_url":"https://secure.gravatar.com/avatar/810f6c181bb9cf3dea392892bac793f0?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-orgs.png","login":"zeromq"},"id":1061668,"homepage":"www.zeromq.org","description":"CLR (.NET & Mono) binding for 0MQ (Version 2)","git_url":"git://github.com/zeromq/clrzmq2.git","html_url":"https://github.com/zeromq/clrzmq2","url":"https://api.github.com/repos/zeromq/clrzmq2","open_issues":0,"size":208,"fork":false,"ssh_url":"git@github.com:zeromq/clrzmq2.git"},"user":{"gravatar_id":"810f6c181bb9cf3dea392892bac793f0","id":109777,"url":"https://api.github.com/users/zeromq","avatar_url":"https://secure.gravatar.com/avatar/810f6c181bb9cf3dea392892bac793f0?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-orgs.png","login":"zeromq"},"sha":"de6e988374e0fd4f1854fbc2d292f52ac9dea2b5","ref":"master","label":"zeromq:master"},"number":34,"additions":126,"merged_by":{"gravatar_id":"ffd525ab7c7bcf11d1655aea552ee840","id":132233,"url":"https://api.github.com/users/jgoz","avatar_url":"https://secure.gravatar.com/avatar/ffd525ab7c7bcf11d1655aea552ee840?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"jgoz"},"title":"New overload for Socket.Recv","head":{"repo":{"pushed_at":"2011-12-11T18:39:41Z","created_at":"2011-12-10T13:19:50Z","clone_url":"https://github.com/fholm/clrzmq2.git","private":false,"updated_at":"2011-12-11T18:39:42Z","watchers":1,"name":"clrzmq2","svn_url":"https://svn.github.com/fholm/clrzmq2","master_branch":null,"forks":0,"language":"C#","owner":{"gravatar_id":"c66daedbfd582bf11e4f35c3ef95658f","id":141683,"url":"https://api.github.com/users/fholm","avatar_url":"https://secure.gravatar.com/avatar/c66daedbfd582bf11e4f35c3ef95658f?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"fholm"},"id":2953418,"homepage":"www.zeromq.org","description":"CLR (.NET & Mono) binding for 0MQ (Version 2)","git_url":"git://github.com/fholm/clrzmq2.git","html_url":"https://github.com/fholm/clrzmq2","url":"https://api.github.com/repos/fholm/clrzmq2","open_issues":0,"size":124,"fork":true,"ssh_url":"git@github.com:fholm/clrzmq2.git"},"user":{"gravatar_id":"c66daedbfd582bf11e4f35c3ef95658f","id":141683,"url":"https://api.github.com/users/fholm","avatar_url":"https://secure.gravatar.com/avatar/c66daedbfd582bf11e4f35c3ef95658f?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"fholm"},"sha":"c7ef6472f5e373830cdbe8f50433b036310d9147","ref":"master","label":"fholm:master"},"html_url":"https://github.com/zeromq/clrzmq2/pull/34","closed_at":"2011-12-11T21:53:36Z","url":"https://api.github.com/repos/zeromq/clrzmq2/pulls/34","diff_url":"https://github.com/zeromq/clrzmq2/pull/34.diff","merged_at":"2011-12-11T21:53:36Z"}}