<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yuji0316</author_name>
  <author_url>https://blog.hatena.ne.jp/yuji0316/</author_url>
  <blog_title>Voicy Tech Blog</blog_title>
  <blog_url>https://tech-blog.voicy.jp/</blog_url>
  <categories>
  </categories>
  <description>こんにちは、Voicyエンジニアの窪田です。 この記事はVoicyエンジニア GWブログリレー 2025の3日目の投稿になります。 GoのWebフレームワークであるEchoを使ってサーバーを開発している際、クライアントがブラウザのタブを閉じると、サーバー側で context canceled エラーが発生することがあります。これは、リクエスト処理中にクライアントとの接続が切断されたために起こります。 Go1.21で導入された context.WithoutCancel 関数を利用することで、この context canceled エラーを回避し、サーバー側の処理を継続させることが可能になります…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech-blog.voicy.jp%2Fentry%2F2025%2F05%2F09%2F145446&quot; title=&quot;Go1.21で追加されたWithoutCancelでcontext canceledの発生を防ぐ - Voicy Tech Blog&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>2025-05-09 14:54:46</published>
  <title>Go1.21で追加されたWithoutCancelでcontext canceledの発生を防ぐ</title>
  <type>rich</type>
  <url>https://tech-blog.voicy.jp/entry/2025/05/09/145446</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
