-
Notifications
You must be signed in to change notification settings - Fork 359
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make STDOUT flushing configurable in udp_bridge
See #155. To enable, create a flush_delay() function in etc/udp_bridge_conf.py that returns an integer representing seconds (defaults to 60s). A flush_delay <= 0 will be near to per-packet flushing of STDOUT.
- Loading branch information
Showing
2 changed files
with
24 additions
and
9 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
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 |
---|---|---|
@@ -1,4 +1,7 @@ | ||
#!/usr/bin/env python | ||
|
||
def enabled(): | ||
return False | ||
return True | ||
|
||
def flush_delay(): | ||
return 60 |