[Winpcap-users] Delay in receiving packets
Loris Degioanni
loris.degioanni at gmail.com
Wed Jul 13 03:39:42 GMT 2005
20 - 30 seconds is a lot of time, and normally happens if you have a lot
of data in the kernel buffer. This is 99% caused by the fact that your
application is a lot slower than the incoming traffic.
There are ways to improve the responsiveness of the driver (mintocopy,
read timeout...), but my feeling is that you should just try to improve
the efficiency of your code, or check if you have macroscopic
synchronization problems.
Loris
Ravi Sankar wrote:
> Hello All...
>
> I am developing a recording tool which receives the
> packets in RTP format.
>
> My problem is even after the VoIP calls is completed
> my application keeps receiving the RTP packet for 20 -
> 30 seconds.
>
> Details of how i designed my application: I am using
> pcap_loop for capturing the packet and in the handler
> "packet_handler" i am handling the packets Once i
> receive a packet i post a message to other thread
> which copies the raw packet to local buffer and
> process the data. (Since raw packet memory is handled
> by WinPCap i am storing the data to local memory and
> process it)
>
> Kindly tell me is there any settings that has to be
> done inorder to process the packet quickly?
> Is it better to use single thread to capture and
> single thread to process?
>
> I am developing in Windows 2000 using VC++. In Windows
> memory allocated in one thread can not be deallocated
> in other thread. So I am forced to do the processing
> in one thread.
>
> Please let me know any better design and any settings
> have to be made for processing the packets quickly.
>
> Thanks in advance
> Ravi
>
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail - Helps protect you from nasty viruses.
> http://promotions.yahoo.com/new_mail
> _______________________________________________
> Winpcap-users mailing list
> Winpcap-users at winpcap.org
> https://www.winpcap.org/mailman/listinfo/winpcap-users
>
More information about the Winpcap-users
mailing list