Coder Social home page Coder Social logo

Comments (5)

abdullah2993 avatar abdullah2993 commented on May 23, 2024

You are using Windows or Linux?

from sharppcap.

jwilczek avatar jwilczek commented on May 23, 2024

Windows.

from sharppcap.

abdullah2993 avatar abdullah2993 commented on May 23, 2024

@jwilczek this is not shappcap problem its a windows one. These limits are imposed by the OS. Look here. A possible workaround without tinkering with the OS is to Open/Close with every write or come up with a method to limit the number of simultaneously opened files(post the code/sample pcap).

Kindly close this issue if you think this was the problem
/cc @chmorgan

from sharppcap.

jwilczek avatar jwilczek commented on May 23, 2024

I apologize for the slow reply. I'm not sure if I agree that this is can be attributed to an OS issue. First, I experience the error around just 508 open files. The link you pointed me to suggested that 16k was possible. Second, I was able to work around the issue by writing my own PCAP writer. Using System.File.IO.Open(), I was able to have 1000s of simultaneously open files with no issues.

Based on some of the preliminary research I conducted, I was of the opinion that this could be an issue with the underlying winpcap library, which is written in c/c++ (I believe). From my preliminary research, I believe I read that a compile-time flag/switch could be used in c/c++ to increase the number of open files.

Either way, I would disagree that this is a C# limitation.

Sincerely,

Josh

from sharppcap.

abdullah2993 avatar abdullah2993 commented on May 23, 2024

@jwilczek I may have misread the situation you may be right but IMO this is not a limitation of SharpPcap, could be a wincap one.

from sharppcap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.