タグ

socketとjavaに関するyassのブックマーク (2)

  • HttpClientとConnectionManagerとCLOSE_WAITと - CLOVER🍀

    JavaでHTTP通信をやろうとすると、必ずと言っていいほど登場する、Apache HttpClient4(以前は、Jakarta Commons HttpClient3)ですが、これでちょっとハマっていた事象を見かけたので、軽くメモを。 あ、その時に使われていたのは、Jakarta Commons HttpClient3の方です。んで、ソケットのクローズ漏れでハマってました。 これ、チュートリアルだけを信じて実装すると、ハマるんですよねぇ…。 http://hc.apache.org/httpclient-3.x/tutorial.html チュートリアルの中に // Release the connection. method.releaseConnection(); みたいなことが書いてあって、いかにもコネクションをクローズしてくれそうな雰囲気がありますが、これは意味が違います。Ht

    HttpClientとConnectionManagerとCLOSE_WAITと - CLOVER🍀
    yass
    yass 2013/11/12
    "いかにもコネクションをクローズしてくれそうな雰囲気がありますが / HttpClientが持つ、HttpConnectionManagerのインスタンスにコネクションを返却しますよ、という意味であって、別にコネクションを閉じてくれるわけではない"
  • C500k in Action at Urban Airship

    Mike Herrick SVP of Product & Engineering Published on 24 Aug 2010 Like the idea of working on large scale problems? We’re always looking for talented engineers, and would love to chat with you – check it out! Building AirMail Push for Android’s Infrastructure We’ve been working to develop AirMail Push for Android, our push platform, along with a supporting server-side infrastructure that can hand

    yass
    yass 2013/08/16
    " the failure modes we saw in both the Java + Netty and Scala + Netty were unusual / we pressed on with a Java + Pure NIO implementation. "
  • 1