Eric Frias
d9e6a9e568
When a task is canceled while blocking on a mutex, fix the code that removes it from the mutex's block list to null out its "next" pointer, which is assumed to be null whenever not blocked on a mutex
2014-08-27 11:55:14 -04:00
Eric Frias
976bbce668
When locking a mutex, ensure the task has a context before attempting to lock.
2014-08-25 18:44:15 -04:00
Eric Frias
d188b138d6
Allow fc::canceled_exception to pass through places where we were catching and ignoring all fc::exceptions
2014-08-25 18:43:12 -04:00
Eric Frias
27096f15a7
Log the names of tasks to the log file (now contains thread_name:task_name}
2014-08-24 18:33:05 -04:00
Eric Frias
198d858d59
Wrap boost exceptions in fc exceptions for a few socket operations that can throw
2014-08-24 14:47:01 -04:00
Eric Frias
578527626c
Support GNTP password authentication
2014-08-21 19:32:56 -04:00
Eric Frias
156a7cc4b4
Allow setting hostname
2014-08-21 16:14:08 -04:00
Eric Frias
ed2f543c24
Add a test that verifies that canceling a task that has a mutex locked cleans up properly (it does)
2014-08-21 15:22:43 -04:00
Eric Frias
362884fc52
Import GNTP notification code
2014-08-21 15:21:48 -04:00
Nathan Hourt
9e75d47ba3
Fix to an issue causing a thread to exit if any fiber therein self-cancels
2014-08-21 14:36:29 -04:00
Daniel Larimer
8468f392ce
default to_string conversion is now fixed
2014-08-13 16:06:42 -04:00
Eric Frias
92d29ac657
Prevent crash at shutdown rescheduling NTP task
2014-08-12 15:19:44 -04:00
Eric Frias
978de7885a
Add a macro to check if a task that shouldn't yield actually yields.
2014-08-02 19:43:28 -04:00
Eric Frias
8fa21821ae
Suppress "inherited via dominance" warning
2014-08-02 15:49:07 -04:00
Daniel Larimer
6e31ffd963
Merge branch 'master' of https://github.com/InvictusInnovations/fc
2014-08-01 17:21:24 -04:00
dnotestein
7cc69f3bb7
Set canceled flag in task's context object so that we cancel out of active tasks when they try to resume. Wrap a try-catch block around tcp and udp resolve requests to convert any non-fc exceptions to fc exceptions. Minor change to clarify design intent that request_time_task should always be running in _ntp_thread.
2014-08-01 11:31:36 -04:00
PaulEU
eae493a8c1
Remove unnecessary code from init_openssl after update new OpenSSL package.
2014-07-29 23:44:47 +02:00
Daniel Larimer
3ccbe26dd5
adding aes exception
2014-07-29 13:54:50 -04:00
Vikram Rajkumar
a23f3a86be
Add missing integer variant conversions
2014-07-28 22:36:47 -04:00
Vikram Rajkumar
f644b1e475
Fix compiler warning
2014-07-27 20:46:39 -04:00
Eric Frias
d847f6469a
Allow us to require assigning descriptions to all async tasks to aid in debugging
2014-07-27 17:37:21 -04:00
dnotestein
9e320a3db8
Add descriptions for a bunch of async tasks, remove logging during thread::quit to avoid crashes for now until we cleanup thread quit code
2014-07-27 00:09:15 -04:00
Vikram Rajkumar
3be05ef822
Merge branch 'master' of github.com:InvictusInnovations/fc
2014-07-26 22:29:22 -04:00
Vikram Rajkumar
48837f3116
Add time_point_sec::to_iso_{extended_}string()
2014-07-26 21:05:11 -04:00
Eric Frias
b460fd6b41
Cleanup all async tasks on exit, thread safety, work in progress.
2014-07-26 18:22:38 -04:00
Eric Frias
600ae24657
separate one try/catch into two blocks during file_appender destructor
2014-07-26 15:05:26 -04:00
Eric Frias
24ba357b0d
Make future's cancel_and_wait automatically swallow the canceled_exception since it is expected.
2014-07-26 14:51:48 -04:00
Eric Frias
c208a968b2
Fix ntp on win32
2014-07-25 14:40:47 -04:00
Vikram Rajkumar
8fff034711
Fix linux clang compilation
2014-07-24 15:33:56 -04:00
dnotestein
34296fbb4a
Eliminate local variable that was shadowing data member variable stack_ctx in context object, which resulted in an assert when the context object was destructed.
2014-07-24 15:18:53 -04:00
Nathan Hourt
a254e5ff28
Merge branch 'master' of github.com:InvictusInnovations/fc
2014-07-23 11:59:48 -04:00
Nathan Hourt
523fa56d88
Bugfix: Incorrect ordering of newline and carriage return in HTTP server
...
The HTTP server was printing "\n\r" at the end of lines in the response
headers, which is invalid and caused some HTTP clients to detect an end
to the headers after the first header line.
The server now prints the proper "\r\n" sequence, which is parsed
correctly by clients.
2014-07-23 11:56:57 -04:00
Gandalf-the-Grey
9aa7700d06
Fix for Linux needed to build Keyhotee.
2014-07-23 10:15:46 -04:00
PaulEU
4890351b34
Added OpenSSL configuration file path. (qt_wallet issue #10 Some clients on Windows 7 quit/crash on start)
2014-07-23 00:18:09 +02:00
Gandalf-the-Grey
2d51fd7321
Fix compile fc on Win64 tcp_socket needs a bit (two dozens of) more space.
2014-07-22 10:04:55 -04:00
Nathan Hourt
eb022cef27
Merge branch 'master' of github.com:InvictusInnovations/fc
...
Conflicts:
.gitignore
2014-07-22 10:00:25 -04:00
Eric Frias
0a1011ddc9
Fix win32 compile (increase size of tcp_socket)
2014-07-21 10:40:21 -04:00
Daniel Larimer
6ef73a4198
reduce default stack size by 50% to 4x default from 8x
2014-07-17 23:03:23 -04:00
Daniel Larimer
eed62c8338
sockets now wait for any pending write or read operations to finish before destructing
2014-07-17 17:03:25 -04:00
Daniel Larimer
01202aa709
adding space to exception message
2014-07-16 14:20:36 -04:00
Eric Frias
b6f8570c35
Lock mutex during more of the log rotation process (attempting to prevent crashes that have been seen while logging at the same time as log rotation)
2014-07-16 13:39:14 -04:00
grzegorzs
06fe9e0303
[GS] Fix types u_int32_t to uint32_t etc. - continued
2014-07-15 14:20:42 +02:00
Vikram Rajkumar
1b15ad0a7a
Fix linux clang compilation (for real)
2014-07-14 21:51:45 -04:00
Eric Frias
f2cbb650c6
Merge branch 'master' of github.com:InvictusInnovations/fc
2014-07-14 19:26:17 -04:00
Eric Frias
c28ccd2413
Fix wacky types u_int32_t to uint32_t &c
2014-07-14 19:25:54 -04:00
Vikram Rajkumar
d31f5525a4
Fix linux clang compilation
2014-07-14 14:56:23 -04:00
Vikram Rajkumar
e442b29f6e
Fix scrypt
2014-07-14 13:40:33 -04:00
Vikram Rajkumar
506f896de4
Re-enable romix compilation
2014-07-14 10:46:15 -04:00
Nikolai Mushegian
de3e2610a5
Merge pull request #36 from vikramrajkumar/master
...
compilation fixes
2014-07-12 18:04:13 -04:00
Vikram Rajkumar
caae9e640f
Fix travis compilation error
2014-07-12 17:59:09 -04:00