freeport 0.0.2 copy "freeport: ^0.0.2" to clipboard
freeport: ^0.0.2 copied to clipboard

A fast and reliable Dart library for finding available network ports. Supports parallel port checking, preferred ports selection, custom hostnames and detailed port availability verification.

0.0.2 (Unreleased) #

Bug Fixes #

  • Fixed resource leak in isAvailablePort function by properly closing the Socket after port testing #2
  • Improved port testing logic to ensure network resources are released after checks

Improvements #

  • Implemented parallel port checking in freePort function for significant performance improvement when testing multiple preferred ports
  • Added two-stage port checking strategy with fallback mechanism for better reliability
  • Refactored the implementation of isAvailablePort function with better Future handling
  • Enhanced handling of port 0 logic

Credits #

  • Thanks to @FourLeafTec for submitting PR #2, fixing the Socket resource leak issue

0.0.1 #

  • Initial version.
0
likes
150
points
9.07k
downloads

Publisher

verified publishermedz.dev

Weekly Downloads

A fast and reliable Dart library for finding available network ports. Supports parallel port checking, preferred ports selection, custom hostnames and detailed port availability verification.

Repository (GitHub)
View/report issues

Topics

#network #port #socket #utility

Documentation

Documentation
API reference

Funding

Consider supporting this project:

github.com

License

MIT (license)

More

Packages that depend on freeport