diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-06-14 17:04:57 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-06-14 17:04:57 +0200 |
commit | f58adbc887abd4f467b483be953ecce7794255fc (patch) | |
tree | 975fba131e4f61ddf654524d65354aee377d9e57 /bbot/tftp.hxx | |
parent | e66023e394db72e81bc88e4747325380db7c96d0 (diff) |
Periodically recheck for manifest upload
There seems to be some obscure race, perhaps related to tmpfs?
Diffstat (limited to 'bbot/tftp.hxx')
-rw-r--r-- | bbot/tftp.hxx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/bbot/tftp.hxx b/bbot/tftp.hxx index c9a88c9..cdd0e3e 100644 --- a/bbot/tftp.hxx +++ b/bbot/tftp.hxx @@ -29,12 +29,14 @@ namespace bbot uint16_t port () const; - // Wait for a TFTP request for up to the specified number of seconds. - // Update the timeout value as well as return true if a request was - // served and false otherwise. + // Wait for a TFTP request for up to the specified number of seconds. If + // increment is not 0, then wait in the specified incremenets (i.e., wait + // for up to that number of seconds; useful when one needs to also + // periodically check for something else). Update the timeout value as + // well as return true if a request was served and false otherwise. // bool - serve (size_t& seconds); + serve (size_t& seconds, size_t increment = 0); private: auto_fd fd_; |