From: normalperson@... Date: 2014-02-20T07:53:45+00:00 Subject: [ruby-core:60892] [ruby-trunk - Bug #9525] Stuck with Socket.pack_sockaddr_in Issue #9525 has been updated by Eric Wong. akr@fsij.org wrote: > I tried to workaround this issue at r45047. > However I don't have an environment to reproduce the problem. I don't know how to reproduce the problem, either. netlink sockets should not block like that. r45047 looks correct. A few minor comments: * backwards for loop for list is confusing to me, any reason for not reversing list declaration? * why xmalloc + MEMZERO? xcalloc is shorter and generates smaller code ---------------------------------------- Bug #9525: Stuck with Socket.pack_sockaddr_in https://bugs.ruby-lang.org/issues/9525#change-45297 * Author: Naotoshi Seo * Status: Third Party's Issue * Priority: Normal * Assignee: * Category: * Target version: * ruby -v: 1.9.3p194 * Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN, 2.1: UNKNOWN ---------------------------------------- We met this trouble with Fluentd https://github.com/fluent/fluentd. Fluentd is sometimes stuck at `Socket.pack_sockaddr_in` line on shutdown. Here is the gist https://gist.github.com/sonots/9047653 to explain details. -- http://bugs.ruby-lang.org/