Get rid of TimeoutThread(s)
commita946a8eb3537d15eefffd403d649275fd258189d
authormwilliams <mwilliams@fb.com>
Mon, 15 Jul 2013 16:50:32 +0000 (15 09:50 -0700)
committerSara Golemon <sgolemon@fb.com>
Wed, 24 Jul 2013 17:35:43 +0000 (24 10:35 -0700)
tree89fedca004dc4cda3c986cc9bca730088fbce356
parent2ac92de9220ac7391cb3f049084dc2c94985d26c
Get rid of TimeoutThread(s)

Use timer events instead. A side effect is that we now
support timeout in client mode. We also get much more
accurate timeouts. Previously starting a server with
a timeout of 4s, and GETing an endpoint that just looped,
would timeout somewhere between 3.5(!) and 8 seconds. Now
it times out between 4.0001 and 4.02s.

This will also make fixing pagelet timeouts much easier.
39 files changed:
hphp/NEWS
hphp/runtime/base/builtin_functions.cpp
hphp/runtime/base/execution_context.cpp
hphp/runtime/base/execution_context.h
hphp/runtime/base/ini_setting.cpp
hphp/runtime/base/program_functions.cpp
hphp/runtime/base/thread_info.cpp
hphp/runtime/base/timeout_thread.cpp [deleted file]
hphp/runtime/base/timeout_thread.h [deleted file]
hphp/runtime/base/types.h
hphp/runtime/ext/ext_options.cpp
hphp/runtime/ext/ext_server.cpp
hphp/runtime/server/admin_request_handler.cpp
hphp/runtime/server/admin_request_handler.h
hphp/runtime/server/http_request_handler.cpp
hphp/runtime/server/http_request_handler.h
hphp/runtime/server/http_server.cpp
hphp/runtime/server/libevent_server.cpp
hphp/runtime/server/libevent_server.h
hphp/runtime/server/libevent_server_factory.cpp
hphp/runtime/server/libevent_server_with_fd.cpp
hphp/runtime/server/libevent_server_with_fd.h
hphp/runtime/server/libevent_server_with_takeover.cpp
hphp/runtime/server/libevent_server_with_takeover.h
hphp/runtime/server/pagelet_server.cpp
hphp/runtime/server/rpc_request_handler.cpp
hphp/runtime/server/rpc_request_handler.h
hphp/runtime/server/satellite_server.cpp
hphp/runtime/server/server.cpp
hphp/runtime/server/server.h
hphp/runtime/server/service_thread.cpp
hphp/runtime/server/virtual_host.cpp
hphp/runtime/server/virtual_host.h
hphp/runtime/server/warmup_request_handler.cpp
hphp/runtime/server/warmup_request_handler.h
hphp/runtime/server/xbox_server.cpp
hphp/runtime/vm/bytecode.cpp
hphp/test/ext/test_ext_curl.cpp
hphp/test/ext/test_server.cpp