FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Updates for Cython3 by alan-brooks · Pull Request #587 · MagicStack/uvloop · GitHub

Repository navigation

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension .pyx  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
Prev Previous commit
Next Next commit
Revert noexcept because _fatal_error() may raise
* __uv_stream_on_read_common()
* __uv_stream_on_read_impl()
* __uv_stream_on_write_impl()
  • Loading branch information
fantix committed Aug 28, 2024
commit d387089d478a998d5da3f0eb6b612043f1bfcd4c
6 changes: 3 additions & 3 deletions uvloop/handles/stream.pyx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,7 @@ cdef inline bint __uv_stream_on_read_common(
UVStream sc,
Loop loop,
ssize_t nread,
) noexcept:
):
if sc._closed:
# The stream was closed, there is no reason to
# do any work now.
Expand Down Expand Up @@ -822,7 +822,7 @@ cdef inline void __uv_stream_on_read_impl(
uv.uv_stream_t* stream,
ssize_t nread,
const uv.uv_buf_t* buf,
) noexcept:
):
cdef:
UVStream sc = <UVStream>stream.data
Loop loop = sc._loop
Expand Down Expand Up @@ -853,7 +853,7 @@ cdef inline void __uv_stream_on_read_impl(
cdef inline void __uv_stream_on_write_impl(
uv.uv_write_t* req,
int status,
) noexcept:
):
cdef:
_StreamWriteContext ctx = <_StreamWriteContext> req.data
UVStream stream = <UVStream>ctx.stream
Expand Down

Back | FazBrowse Home | New Git URL