1. 04 Sep, 2015 1 commit
  2. 03 Sep, 2015 1 commit
  3. 02 Sep, 2015 2 commits
    • Sven Over's avatar
      folly: specialise makeFutureWith for functions returning futures · 823a8c01
      Sven Over authored
      Summary: makeFutureWith executes a function and returns a future containing
      set to the function's return value. This diff adds a specialisation
      for the case when the function returns some type Future<T>. Instead
      of returning Future<Future<T>>, makeFutureWith now just passes
      on the future that the function returned, which may or may not have
      a value set at this time. In case the function throws,
      makeFutureWith returns a Future<T> containing the exception.
      
      With this diff, the following two lines produce equivalent results:
        auto f1 = makeFutureWith(func);
        auto f2 = makeFuture().then(func);
      except for the fact that f2 requires an additional temporary
      Future<Unit> to be created and destroyed.
      
      Reviewed By: @fugalh
      
      Differential Revision: D2388335
      823a8c01
    • Haijun Zhu's avatar
      Erasing Cpp2Worker in its evb thread · f1190644
      Haijun Zhu authored
      Summary: Erasing Cpp2Worker happens in acceptor thread but when evb is
      destroyed and drains its callback queue, the callbacks may access the
      worker. This moves erasing Cpp2Worer to its own evb thread, after all
      callbacks are run.
      
      Reviewed By: @yfeldblum
      
      Differential Revision: D2398089
      f1190644
  4. 31 Aug, 2015 9 commits
    • Sara Golemon's avatar
      Bump version to 57:0 · 076bfa05
      Sara Golemon authored
      076bfa05
    • Jason Evans's avatar
      Universally update to jemalloc 4.0.0. · ac354aba
      Jason Evans authored
      Summary: Universally update to jemalloc 4.0.0.
      
      Update MALLOC_CONF/malloc_conf configuration, and use the
      "arena.<i>.purge" mallctl (replaces "arenas.purge").
      
      Reviewed By: @​bmaurer
      
      Differential Revision: D2355602
      ac354aba
    • Kyle Nekritz's avatar
      Log TLS signature_algorithms extension values. · 6dd4bc6a
      Kyle Nekritz authored
      Summary: Provide a folly interface for logging the client supported TLS signature algorithms.
      
      Reviewed By: @siyengar
      
      Differential Revision: D2374528
      6dd4bc6a
    • Sara Golemon's avatar
      Revert "Mass Revert to cdb635a" · c8639608
      Sara Golemon authored
      This reverts commit 37f45ee5 which should not have been pushed.
      c8639608
    • Sara Golemon's avatar
      Bump version to 56:0 · eb5f6241
      Sara Golemon authored
      eb5f6241
    • Michael Lee's avatar
      Mass Revert to cdb635a · 37f45ee5
      Michael Lee authored
      Reviewed By: @​sarals, @siyengar, @​dpittman, @​alephbax
      37f45ee5
    • Michael Morton's avatar
      Adding singular token bucket implementation. · 280e99ae
      Michael Morton authored
      Summary: Contains only the central implementation of the TokenBucket, without moving other files to use the new implementation.
      
      Reviewed By: @yfeldblum
      
      Differential Revision: D2329892
      280e99ae
    • Mainak Mandal's avatar
      make doNotOptimizeAway work with clang · a3c67e00
      Mainak Mandal authored
      Summary: Projects depending on benchmark library fail to build with clang with the following error
      ```
      ./folly/Benchark.h:263:16: error: inline asm not supported yet: don't know how to handle tied indirect register inputs
      ```
      
      I am not an expert here, just tried to take an approach similar to the MSVC compiler clause
      
      Reviewed By: @andralex, @yfeldblum
      
      Differential Revision: D2368670
      a3c67e00
    • Yedidya Feldblum's avatar
      Fix the example for folly::static_function_deleter. · 148045d0
      Yedidya Feldblum authored
      Summary: [Folly] Fix the example for folly::static_function_deleter.
      
      The problem is that
      
          int BIO_free(BIO*)
      
      is not directly compatible.
      
      So have two examples. One using `RSA_free` which is compatible, and one making a compatible wrapper around `BIO_free`.
      
      Reviewed By: @Gownta
      
      Differential Revision: D2381125
      148045d0
  5. 25 Aug, 2015 2 commits
  6. 24 Aug, 2015 2 commits
  7. 23 Aug, 2015 2 commits
  8. 21 Aug, 2015 5 commits
    • Yedidya Feldblum's avatar
      static_function_deleter. · 74a1c035
      Yedidya Feldblum authored
      Summary: [Folly] static_function_deleter.
      
      So you can write this:
      
          using BIO_deleter = folly::static_function_deleter<BIO, &BIO_free>;
          auto buf = std::unique_ptr<BIO, BIO_deleter>(BIO_new(BIO_s_mem()));
          buf = nullptr;
      
      In place of this:
      
          struct BIO_deleter {
            void operator()(BIO* bio) {
              BIO_free(bio);
            }
          };
          auto buf = std::unique_ptr<BIO, BIO_deleter>(BIO_new(BIO_s_mem()));
          buf = nullptr;
      
      Reviewed By: @alandau
      
      Differential Revision: D2364544
      74a1c035
    • Jim Meyering's avatar
      folly: update README.md for newer Fedora · 671368be
      Jim Meyering authored
      Summary: Running ./configure on Fedora 21 failed until I installed some
      more prerequisite packages.  Add them to the list in README.md.
      
      Reviewed By: @markisaa
      
      Differential Revision: D2369708
      671368be
    • Maxim Georgiev's avatar
      Add a default timeout parameter to HHWheelTimer. · 81bb353a
      Maxim Georgiev authored
      Summary: Currently HHWheelTimer requires providing an explicit timeout value every time a new timeout is scgeduled. This change adds an optional "default timeout" parameter. With this parameter set, HHWheelTimer can be used the same way as AsyncTimeoutSet. Variable timeout functionality is still available even if the default parameter is set.
      
      Reviewed By: @djwatson
      
      Differential Revision: D2366783
      81bb353a
    • Tom Jackson's avatar
      Prevent accidental moves in filter() · 6a36073a
      Tom Jackson authored
      Summary: Per Boris's report.
      
      Preparing to re-push this after fixing downstream errors.
      
      Reviewed By: @ot
      
      Differential Revision: D2361333
      6a36073a
    • Jason Prado's avatar
      Remove superfluous std::move calls · c0cb9812
      Jason Prado authored
      Summary: clang-3.7 upstream warns that these calls prevent a copy elision
      (-Wpessimizing-move).
      
      Reviewed By: @​mzlee
      
      Differential Revision: D2366951
      c0cb9812
  9. 20 Aug, 2015 1 commit
  10. 19 Aug, 2015 1 commit
  11. 18 Aug, 2015 4 commits
    • Tom Jackson's avatar
      Prevent accidental moves in filter() · 0fdbb61e
      Tom Jackson authored
      Summary: Per Boris's report.
      
      Reviewed By: @yfeldblum
      
      Differential Revision: D2357299
      0fdbb61e
    • Orvid King's avatar
      Adjust Format-inl.h to work with MSVC · bae18697
      Orvid King authored
      Summary: Originally #247, which was closed before being merged, this doesn't change the behavior of the formatting function now.
      Closes #297
      
      Reviewed By: @yfeldblum
      
      Differential Revision: D2340712
      
      Pulled By: @sgolemon
      bae18697
    • Yedidya Feldblum's avatar
      EnvVarSaver. · 1b08746e
      Yedidya Feldblum authored
      Summary: [Folly] EnvVarSaver.
      
          TEST(SomeBigClassTest, ChangesEnvVars) {
            folly::EnvVarSaver saver;
            setenv("USER", "root", 1);
            BigClass().doSomethingWithUser();
          }
      
      Reviewed By: @Gownta
      
      Differential Revision: D2354679
      1b08746e
    • Subodh Iyengar's avatar
      Refactor HandshakeHelper and add a peeking handshake helper · 663d3a7b
      Subodh Iyengar authored
      Summary: This adds support to Acceptor to be able to switch between
      multiple protcols when SSL is being negotiated using MSG_PEEK.
      
      The motivation for this is to be able to try out multiple protocols.
      
      Reviewed By: @djwatson
      
      Differential Revision: D2327946
      663d3a7b
  12. 17 Aug, 2015 5 commits
    • Sara Golemon's avatar
      Bump version to 54:0 · 942ad3f3
      Sara Golemon authored
      942ad3f3
    • Daniel M. Weeks's avatar
      Limit use of hardware crc32 check to SSE 4.2 · ee6b4fce
      Daniel M. Weeks authored
      Summary: Fixes compiling crc32c function on older hardware. (I believe this problem was introduced by 7ec1fc0e).
      
      Also ensures is in final library since the API suggests it should be. This should correct a number of build problems for other projects like wdt and hhvm when they are compiled using a shared folly library rather than borrowing sources at compile time.
      Closes #296
      
      Reviewed By: @yfeldblum
      
      Differential Revision: D2340699
      
      Pulled By: @sgolemon
      ee6b4fce
    • Orvid King's avatar
      Remove `unsigned char v = static_cast<unsigned char>(v);` · cd69a53a
      Orvid King authored
      Summary: MSVC spotted this very suspicious line when I was running it with /analyze, and complained about using an unitialized variable. This variable isn't used anywhere in the function, and is initializing itself with itself. I have no idea how this compiled in the first place, but apparently it does.
      This removes the line in question.
      Closes #295
      
      Reviewed By: @yfeldblum, @paulbiss
      
      Differential Revision: D2340688
      
      Pulled By: @sgolemon
      cd69a53a
    • Orvid King's avatar
      Implement Random.cpp for MSVC · 9af38044
      Orvid King authored
      Summary: This uses `<random>` to implement it, because there is no `/dev/urandom` on Windows.
      Closes #250
      
      Reviewed By: @yfeldblum
      
      Differential Revision: D2282887
      
      Pulled By: @sgolemon
      9af38044
    • Yedidya Feldblum's avatar
      Extract folly/io/async/test/RequestContextTest.cpp (from Thrift). · 750586e0
      Yedidya Feldblum authored
      Summary: [Folly] Extract folly/io/async/test/RequestContextTest.cpp (from Thrift).
      
      Reviewed By: @haijunz
      
      Differential Revision: D2350908
      750586e0
  13. 15 Aug, 2015 1 commit
  14. 14 Aug, 2015 3 commits
  15. 13 Aug, 2015 1 commit