Download Latest Version v6.2.2 source code.zip (3.7 MB)
Email in envelope

Get an email when there's a new version of Swoole

Home / v6.2.1
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2026-05-15 3.0 kB
v6.2.1 source code.tar.gz 2026-05-15 2.2 MB
v6.2.1 source code.zip 2026-05-15 3.7 MB
Totals: 3 Items   5.9 MB 0
  • Fix timeout configuration error: Fixed an issue where the write timeout incorrectly reused the read timeout when max_idle_time was set.
  • Fix async reload warning: Eliminated invalid warnings triggered by the exit of old processes during asynchronous reloads.
  • Refactor process management: Refactored the server process management logic.
  • Optimize fork failure handling: Improved the handling mechanism after child process fork failures. Added retry logic that waits 1 second before each retry to avoid generating excessive error logs.
  • Fix data race issue: Changed the closed field in the underlying Connection struct to an atomic operation, eliminating a potential data race risk.
  • Fix integer overflow: Fixed an integer overflow issue in the Redis server.
  • Replace communication mechanism: Replaced the communication method between child threads and the main thread in the thread pool from Pipe to UnixSocket.
  • Support curl coroutine mode: In curl coroutine scenarios, file upload and download operations have been replaced with coroutine implementations.
  • Optimize blocking function detection: Enhanced the tracker observer's ability to detect blocking functions.
  • Adapt unit tests: Updated the IP address lookup functionality in unit tests for different operating system families.
  • Add PDO asynchronous method: Added the asynchronous method PQsendClosePrepared for pdo_pgsql to close existing prepared statements.
  • Database connection pool optimization: Added recognition and handling for various error messages indicating that database connections have been disconnected and require reconnection.

  • 修复超时配置错误:解决了当设置 max_idle_time 时,写超时误用了读超时时间的问题。

  • 修复异步重载警告:消除了在异步重载期间,因旧进程退出而触发的无效警告。
  • 重构进程管理:对服务器进程管理逻辑进行了重构。
  • 优化 Fork 失败处理:改进了子进程 fork 失败后的应对机制。新增重试逻辑,在每次重试前等待 1 秒,以避免产生过多的错误日志。
  • 修复数据竞争问题:将底层 Connection 结构体中的 closed 字段改为原子操作,解决了潜在的数据竞争风险。
  • 修复整型溢出:修复了 Redis 服务端中的一个整型溢出问题。
  • 更换通信机制:将线程池中子线程与主线程之间的通信方式从 Pipe 改为 UnixSocket
  • 支持 Curl 协程化:在 curl 协程化场景下,文件上传和下载操作现已被替换为协程化的实现。
  • 优化阻塞函数检测:增强了 tracker observer 检测阻塞函数的能力。
  • 适配单元测试:在单元测试中,针对不同操作系统更新了 IP 地址查询功能。
  • 新增 PDO 异步方法:为 pdo_pgsql 增加了异步方法 PQsendClosePrepared,用于关闭已存在的预处理语句。
  • 数据库连接池优化:新增了对多种因数据库连接断开而需重连的错误信息的识别与处理。
Source: README.md, updated 2026-05-15