Skip to content

Auto PR from release/0.6 to release/0.7 - #1488

Closed
github-actions[bot] wants to merge 33 commits into
release/0.7from
release/0.6
Closed

Auto PR from release/0.6 to release/0.7#1488
github-actions[bot] wants to merge 33 commits into
release/0.7from
release/0.6

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Created by Github action

liulanzheng and others added 30 commits May 16, 2024 11:45
Signed-off-by: liulanzheng <lanzheng.liulz@alibaba-inc.com>
…t empty/full (#504)

* FIX: lockfree MPMC queue should not fail to pop/push when queue is not empty/full

Signed-off-by: Coldwings <coldwings@me.com>

* Old CI image not able to access repo, change to preset image

Signed-off-by: Coldwings <coldwings@me.com>

---------

Signed-off-by: Coldwings <coldwings@me.com>
…oding (#1113)

* fix(http): Fix stale buffer data being parsed in chunked transfer encoding

Signed-off-by: yuchen.cc <yuchen.cc@alibaba-inc.com>

* fix(http): prevent duplicate stream read in chunked body when parsing final chunk

Signed-off-by: yuchen.cc <yuchen.cc@alibaba-inc.com>

---------

Signed-off-by: yuchen.cc <yuchen.cc@alibaba-inc.com>
…1165)

Signed-off-by: zhuangbowei.zbw <zhuangbowei.zbw@alibaba-inc.com>
…heck on e2fsprogs >= 1.46 (#1237)

Signed-off-by: zhuangbowei.zbw <zhuangbowei.zbw@alibaba-inc.com>
…1360) (#1390) (#1418)

* Fix SubFile pwritev offset and path buffer overflow checks

* Address review: use LOG_ERROR_RETURN for path length check

Co-authored-by: Jiangtian Feng <fengjiangtian.fjt@alibaba-inc.com>
…1298) (#1349) (#1362) (#1392) (#1424)

Co-authored-by: Jiangtian Feng <fengjiangtian.fjt@alibaba-inc.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…#1363) (#1394) (#1425)

Co-authored-by: Jiangtian Feng <fengjiangtian.fjt@alibaba-inc.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
… (#1366) (#1415) (#1434)

Co-authored-by: Jiangtian Feng <fengjiangtian.fjt@alibaba-inc.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…) (#1335) (#1374) (#1403) (#1437)

Co-authored-by: Jiangtian Feng <fengjiangtian.fjt@alibaba-inc.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…1407) (#1440)

* Cap HTTP client retry backoff at 5 seconds

The exponential backoff formula (sleep_interval + 500) * 2 grows
unbounded, reaching 30+ seconds after a few retries. Cap at 5s to
prevent excessive tail latency on transient failures.



* Address review: bound retry backoff by remaining timeout

Per maintainer feedback: instead of an arbitrary 5s cap, clamp each
backoff sleep to the remaining operation timeout (tmo.timeout()). This
prevents a single backoff from overshooting the deadline regardless of
how the exponential interval grows, and removes the magic constant.



* Address review: use microseconds for sleep_interval directly

Per maintainer feedback: define sleep_interval in microseconds from
the start, eliminating the * 1000 conversion. Both thread_usleep()
and tmo.timeout() use microseconds, so this is cleaner.



---------

Co-authored-by: Jiangtian Feng <fengjiangtian.fjt@alibaba-inc.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
…#1389) (#1427) (#1443)

Co-authored-by: Jiangtian Feng <fengjiangtian.fjt@alibaba-inc.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
… writev cap (#1288) (#1370)  (#1380) (#1416) (#1448)

* Fix HTTP range parsing, cookie jar, and body writev cap (#1288) (#1370)

* Fix HTTP Range parsing, cookie header corruption, and writev cap

* Address review: move wc calculation into branches

- Only clone/shrink iovec in overflow path
- Calculate wc separately in each branch to avoid extra branching
- Fixes sign comparison warning

---------




* Update cookie_jar.cpp

---------

Co-authored-by: Jiangtian Feng <fengjiangtian.fjt@alibaba-inc.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: Huiba Li <huiba.lhb@alibaba-inc.com>
) (#1422) (#1449)

Co-authored-by: Jiangtian Feng <fengjiangtian.fjt@alibaba-inc.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
… fini() (#1268) (#1318) (#1384) (#1420)  (#1445)

* Fix iouring eventfd double-close on repeated fini() (#1268) (#1318) (#1384) (#1420)

Co-authored-by: Jiangtian Feng <fengjiangtian.fjt@alibaba-inc.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>

* Update iouring-wrapper.cpp

---------

Co-authored-by: Jiangtian Feng <fengjiangtian.fjt@alibaba-inc.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Huiba Li <huiba.lhb@alibaba-inc.com>
…#1405) (#1453)

When KernelSocketServer::accept() successfully accepts a connection
but setsockopt() subsequently fails, the accepted fd was leaked.
Added ::close(cfd) on the error path.

Co-authored-by: Jiangtian Feng <jiangtianf97@163.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
#1306) (#1334) (#1375)  (#1404) (#1452)

* Fix macOS sendfile source/dest argument order (#1306) (#1334) (#1375)




* Update basic_socket.cpp

---------

Co-authored-by: Jiangtian Feng <fengjiangtian.fjt@alibaba-inc.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: Huiba Li <huiba.lhb@alibaba-inc.com>
) (#1426) (#1458)

Co-authored-by: Jiangtian Feng <fengjiangtian.fjt@alibaba-inc.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
… failure (#1252)  (#1328) (#1393) (#1428) (#1459)

* Fix crash in threads_create_join on partial failure (#1252)

* Fix crash in threads_create_join on partial failure

When thread_create() fails mid-loop, only join threads that were
actually created. Previously the join loop iterated all n slots,
calling thread_join on uninitialized pointers (stack array case)
or nullptr (vector case), causing a segfault.



* Address review: return # of threads created, use created++ index

Per maintainer feedback:
- threads_create_join now returns the actual number of threads created
  (< n on partial failure), so callers can detect partial failure.
- Use pthreads[created++] = th instead of a separate created++ line.



---------



* Update thread.h

* Update thread.h

---------

Co-authored-by: Jiangtian Feng <fengjiangtian.fjt@alibaba-inc.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Coldwings <coldwings@me.com>
Co-authored-by: Huiba Li <huiba.lhb@alibaba-inc.com>
…le switch and fix extfs_close (#1276) (#1346) (#1364)  (#1397) (#1460)

* extfs: add resize_extfs interface with compile switch and fix extfs_close (#1276) (#1346) (#1364)



* Update CMakeLists.txt

* Update CMakeLists.txt

---------

Co-authored-by: OsentryO <75356449+OsentryO@users.noreply.github.com>
Co-authored-by: Huiba Li <huiba.lhb@alibaba-inc.com>
Co-authored-by: Coldwings <coldwings@me.com>
…ce/iterator bugs (#1283)  (#1382) (#1421) (#1444) (#1463)

* Fix alog snprintf overflow and iovector slice/iterator bugs (#1283)

* Fix log buffer overflow and iovector slice/iterator bugs



* Address review: refactor slice to process first element before loop

- Skip loop only skips complete iovec elements
- Process first (potentially partial) element separately
- Main loop only handles full elements, no branching

---------



* Update iovector.cpp

---------

Co-authored-by: Jiangtian Feng <fengjiangtian.fjt@alibaba-inc.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: Huiba Li <huiba.lhb@alibaba-inc.com>
) (#1462)

Co-authored-by: Jiangtian Feng <fengjiangtian.fjt@alibaba-inc.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
…#1265) (#1322) (#1387) (#1423)  (#1457)

* Fix OOB access in event engines when fd is 0 (#1265) (#1322) (#1387) (#1423)

Co-authored-by: Jiangtian Feng <fengjiangtian.fjt@alibaba-inc.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>

* Update epoll.cpp

---------

Co-authored-by: Jiangtian Feng <fengjiangtian.fjt@alibaba-inc.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Huiba Li <huiba.lhb@alibaba-inc.com>
…url init (#1285) (#1371) (#1379) (#1408)  (#1455)

* Fix TLS null ctx crash, OpenSSL leaks, and curl init (#1285) (#1371) (#1379) (#1408)

* Fix TLS null ctx crash, OpenSSL resource leaks, and curl init

* Fix TLS null ctx crash, OpenSSL resource leaks, and curl init

* Address review: use LOG_ERROR_RETURN and DEFER

- tls-stream.cpp: Replace LOG_ERROR + return with LOG_ERROR_RETURN
- curl.cpp: Use DEFER for cleanup on init failure instead of separate function

---------

Co-authored-by: Jiangtian Feng <fengjiangtian.fjt@alibaba-inc.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* Update curl.cpp

* Update curl.cpp

---------

Co-authored-by: Jiangtian Feng <fengjiangtian.fjt@alibaba-inc.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: Huiba Li <huiba.lhb@alibaba-inc.com>
photonlibos and others added 3 commits June 20, 2026 00:13
…ead join and skip_read static buffer race (#1287) (#1337) (#1372)  (#1402)  (#1472)

* [Backport][0.8 to 0.7] | Fix terminate() thread join and skip_read static buffer race (#1287) (#1337) (#1372)  (#1402)

* Fix terminate() thread join and skip_read static buffer race (#1287) (#1337) (#1372)

Co-authored-by: Jiangtian Feng <fengjiangtian.fjt@alibaba-inc.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* Update kernel_socket.cpp

* Update kernel_socket.cpp

---------

Co-authored-by: Jiangtian Feng <fengjiangtian.fjt@alibaba-inc.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: Huiba Li <huiba.lhb@alibaba-inc.com>

* Update kernel_socket.cpp

---------

Co-authored-by: Jiangtian Feng <fengjiangtian.fjt@alibaba-inc.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: Huiba Li <huiba.lhb@alibaba-inc.com>
… init and ObjectCache move/lock bugs (#1284)  (#1339) (#1413)  (#1446) (#1480)

* [Backport][main to 0.9] | Fix lockfree queue init and ObjectCache move/lock bugs (#1284)  (#1339) (#1413)

* Fix lockfree queue init and ObjectCache move/lock bugs (#1284)

* Refactor release method in ObjectCacheBase

* Update lockfree_queue.h

---------




* Delete common/objectcachev2.h

* fix conflict

* Update expirecontainer.cpp

* Update expirecontainer.cpp

---------

Co-authored-by: Jiangtian Feng <fengjiangtian.fjt@alibaba-inc.com>
Co-authored-by: Coldwings <coldwings@me.com>
Co-authored-by: Huiba Li <huiba.lhb@alibaba-inc.com>
… arguments in Content-Range parsing (#1262)  (#1325) (#1412)  (#1454) (#1481)

* [Backport][main to 0.9] | Fix swapped sscanf arguments in Content-Range parsing (#1262)  (#1325) (#1412)

* Fix swapped sscanf arguments in Content-Range parsing (#1262)

* Update message.cpp

---------





* Update message.cpp

* Update message.cpp

---------

Co-authored-by: Jiangtian Feng <fengjiangtian.fjt@alibaba-inc.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Huiba Li <huiba.lhb@alibaba-inc.com>
@lihuiba lihuiba closed this Jun 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants