GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fix `shutdownInput` bug in kqueue for empty recv buffer (#16630) (#16… · netty/netty@7ffc4f0

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • transport-classes-kqueue/src/main/java/io/netty/channel/kqueue
    • AbstractKQueueStreamChannel.java
    • KQueueRecvByteAllocatorHandle.java
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎transport-classes-kqueue/src/main/java/io/netty/channel/kqueue/AbstractKQueueStreamChannel.java‎

Copy file name to clipboardExpand all lines: transport-classes-kqueue/src/main/java/io/netty/channel/kqueue/AbstractKQueueStreamChannel.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ void readReady(final KQueueRecvByteAllocatorHandle allocHandle) {
562562
allocHandle.readComplete();
563563
pipeline.fireChannelReadComplete();
564564

565-
if (close) {
565+
if (close || allocHandle.isReadEOF()) {
566566
shutdownInput(false);
567567
}
568568
} catch (Throwable t) {
Collapse file

‎transport-classes-kqueue/src/main/java/io/netty/channel/kqueue/KQueueRecvByteAllocatorHandle.java‎

Copy file name to clipboardExpand all lines: transport-classes-kqueue/src/main/java/io/netty/channel/kqueue/KQueueRecvByteAllocatorHandle.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ void numberBytesPending(long numberBytesPending) {
9393
}
9494

9595
boolean maybeMoreDataToRead() {
96-
/**
96+
/*
9797
* kqueue with EV_CLEAR flag set requires that we read until we consume "data" bytes
9898
* (see <a href="https://www.freebsd.org/cgi/man.cgi?kqueue">kqueue man</a>). However in order to
9999
* respect auto read we supporting reading to stop if auto read is off. If auto read is on we force reading to

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.