2013/10/22 追è¨ããï¼ Starletã®ã³ã¼ãèªãã§ã¦listening socketã«TCP_DEFER_ACCEPTã¨ããããªãã·ã§ã³æ¸¡ãã¦ãã®ã§ãããä½ã ã£ã¦æã£ã¦èª¿ã¹ãï¼ TCPã«ç¹ã«è©³ããããã§ã¯ãªãã®ã§ç解ã«èª¤ãããããããããªãï¼ package Starlet::Server; ... # set defer accept if ($^O eq 'linux') { setsockopt($self->{listen_sock}, IPPROTO_TCP, 9, 1) # 9ãTCP_DEFER_ACCEPTã表ã and $self->{_using_defer_accept} = 1; } ... TCP_DEFER_ACCEPTã¯Linux 2.4ããå°å ¥ããã¦ããï¼ Linux 2.6.32ããæåãè¥å¹²å¤ãã£ã¦ãããããï¼ (linux ã® TCP_DE
{{#tags}}- {{label}}
{{/tags}}