Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7850387
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T18:49:48+00:00 2026-06-02T18:49:48+00:00

I have an app on Netty where I’m setting tcpNoDelay to true (for both

  • 0

I have an app on Netty where I’m setting tcpNoDelay to true (for both the server and “child” sockets). When I “curl” to my server with -vN (N disables the client buffer), and then slowly write data to the channel, nothing propagates to the client until some buffer limit is reached, and then it’s pushed to the client. I should note that I’m writing back Chunked data (so the client stays connected until we close it).

I have used Wireshark to make sure that I get nothing sent to the client until the buffer limit is reached, and then I see a bunch of TCP packets flood to the client.

Ideally, this should be smooth. Strangely, this doesn’t happen with the instance I run on my local machine (Mac OS X Lion, Java 1.6.0_31). Only presents itself on the server which is Ubuntu, Java 1.6.0_20. I can’t imagine the slight version mismatch from _20 to _31 is the reason.

Server options being set:

nioStreamBootstrap.setOption("child.tcpNoDelay", true);
nioStreamBootstrap.setOption("child.keepAlive", true);
nioStreamBootstrap.setOption("tcpNoDelay", true);

Client “curl”:

curl -vN http://my.remote.server/some/path

My logs show the write being made to the client channel:

--- Message received from downstream
--- Writing message upstream
--- Message received from upstream
--- Writing message downstream

(note that the “Writing message downstream” call immediately precedes the channel.write(obj) call)

So I’m not sure if it’s OS-related, Java-related, or Netty-related. Suggestions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T18:49:50+00:00Added an answer on June 2, 2026 at 6:49 pm

    Appears to be an Ubuntu server issue. Can’t replicate issue on CentOS or Mac OS X.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Server Component ( based on Jboss-Netty, which could maintain & handle
we have app hosted on google app engine for java. In this app we
I have app.config in m win application, and loggingConfiguration section (enterprise library 4.1). I
We have App A as main app. Now we build from it App B
I have app in which i have recorded sound files i want that i
lets say i have app id, app secret id and user uid now i
for example: I have app A, which references library A and library B. in
have an app that finds your GPS location successfully, but I need to be
Have an app that has listings - think classified ads - and each listing
My app have a background image that fills the screen. I'd like to display

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.