-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: prax leaks file descriptors (quick fix)
A Crystal bug generates a new libevent DNS base for every IPSocket. This patch fixes it by forcing the correct memoization of the DNS base. See crystal-lang/crystal#1700 for details.
- Loading branch information
1 parent
82f5224
commit 3b91e60
Showing
2 changed files
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Quick fix for https://github.com/manastech/crystal/issues/1700 | ||
|
||
module Event | ||
struct Base | ||
setter :dns_base | ||
end | ||
end | ||
|
||
class Scheduler | ||
@@eb.dns_base = @@eb.dns_base | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters