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 9019833
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T04:52:05+00:00 2026-06-16T04:52:05+00:00

I am debugging a packet loss issue with my C++ program receiving RTP. After

  • 0

I am debugging a packet loss issue with my C++ program receiving RTP.
After my program ran for quite a long time receiving lots of RTP data, it starts to loose packets.

Tracing with Wireshark shows the missing packets, but my application never receives them. It seems the network stack drops them before delivering them to the application. After restarting my application all goes back to normal.

To produce the error condition, I overload the machine with RTP and at that time packet loss happens and for good reason. But even after I stop the overload and start sending at a moderate rate, packet loss still occurs and I have to restart my application to receive all data again.

Is this an issue with Linux receive buffer handling? What Linux stats could I check to see where those missing packets go?

  • 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-16T04:52:06+00:00Added an answer on June 16, 2026 at 4:52 am

    You are not consuming your UDP input fast enough. Here are some usual steps to take to mitigate that:

    • Switch to recvmmsg(2) if your kernel supports it to reduce system call overhead,
    • Pre-allocate all memory used during input processing,
    • Profile your app, find hot spots and optimize,
    • Maybe farm processing out to separate threads, but keep lock scope as small as possible,
    • Increase your socket receive buffer (setsockopt(2)),
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a very odd issue trying to run this quite simple C program
Debugging a PHP program, is there any add-on/plug-in for browser which I can view
After debugging for many hours, I just give up and ask for your help.
Debugging my code with Java's jdb. Am stuck at a point where my program
I am debugging a program provided to me by someone else, and do not
After debugging a CodeIgniter application that were installed into a new development environment, I
Debugging my program on big counts of kernels, I faced with very strange error
Debugging some finance-related SQL code found a strange issue with numeric(24,8) mathematics precision. Running
Debugging in Visual Studio 2010 (C++, unmanaged), what is the information unused ??? or
Debugging a Firefox addon is a slow process: (1) edit source code in a

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.