<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tt_clown</author_name>
  <author_url>https://blog.hatena.ne.jp/tt_clown/</author_url>
  <blog_title>Cube Lilac</blog_title>
  <blog_url>https://clown.cube-soft.jp/</blog_url>
  <categories>
    <anon>Development</anon>
    <anon>C++</anon>
  </categories>
  <description>OpenSSL を使用しているときに複数のソケットの入力状況を管理する場合，通常の socket と同じように select や epoll を用いて制御を行うとうまくいかないときがあります． SSL のような暗号通信の場合、送信は「垂れ流し」では済まず、ハンドシェークを行なう必要があるからだが、この時、受信しようと思っていなかったデータ、つまり通信相手が送信したデータまで読み込んでしまう場合がある。すると、SSL_write を呼んでいるのに、 OpenSSL の受信バッファに、意図せずデータが溜まってしまう。こうなってしまうと、select(2) や epoll(2) では検知できない。 …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fclown.cube-soft.jp%2Fentry%2F20081108%2Fp1&quot; title=&quot; OpenSSLとselect - Cube Lilac&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2008-11-08 00:00:00</published>
  <title> OpenSSLとselect</title>
  <type>rich</type>
  <url>https://clown.cube-soft.jp/entry/20081108/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
