Con Kolivas
|
5b4761003c
|
Move from the thread safe localtime_r to regular localtime which is the only one supported on newer pthread libraries on mingw32 to make it compile with
the newer ming. Thread safety is of no importance where localtime is used in this code.
|
2012-02-09 21:54:23 +11:00 |
|
Con Kolivas
|
de4c6c29d7
|
Provide support for the submitold extension on a per-pool basis based on the value being detected in a longpoll.
|
2012-02-06 18:12:22 +11:00 |
|
Con Kolivas
|
e57ac0177f
|
Remove unused get_dondata function.
|
2012-02-05 22:43:42 +11:00 |
|
Con Kolivas
|
36d2fa485c
|
Silence unused parameter warnings.
|
2012-02-05 22:39:28 +11:00 |
|
ckolivas
|
13fa5772ad
|
Probe but don't set the timeout to 15 seconds as some networks take a long time to timeout.
|
2012-02-04 20:04:49 +11:00 |
|
ckolivas
|
1832b20c40
|
Revert "Some networks can take a long time to resolve so go back to 60 second timeouts instead of 15."
This reverts commit c86a670ce6 .
This changed more than just the timeout.
|
2012-02-04 20:04:07 +11:00 |
|
ckolivas
|
c86a670ce6
|
Some networks can take a long time to resolve so go back to 60 second timeouts instead of 15.
|
2012-02-04 13:06:04 +11:00 |
|
Con Kolivas
|
bdec295fee
|
Set the latest network access time on share submission for --net-delay even if we're not delaying that submission for further network access.
|
2012-01-30 17:58:22 +11:00 |
|
Kano
|
b188157c2f
|
Resume advertising midstate support
|
2012-01-30 16:43:14 +11:00 |
|
Con Kolivas
|
3de7c7f9c2
|
Stop advertising midstate support until it's fixed.
|
2012-01-30 15:51:46 +11:00 |
|
Con Kolivas
|
09184720c2
|
As share submission is usually staggered, and delays can be costly, submit shares without delay even when --net-delay is enabled.
|
2012-01-30 15:09:58 +11:00 |
|
Con Kolivas
|
82af288e69
|
Revert "Fix various harmless warnings."
This reverts commit a4b67f030f .
|
2012-01-29 22:57:29 +11:00 |
|
Con Kolivas
|
a4b67f030f
|
Fix various harmless warnings.
|
2012-01-29 21:06:17 +11:00 |
|
Luke Dashjr
|
fe88648e5d
|
Advertise longpoll support in X-Mining-Extensions
|
2012-01-26 23:32:50 +11:00 |
|
Con Kolivas
|
6442c1aba0
|
Style police.
|
2012-01-22 20:36:57 +11:00 |
|
Midnight Magic
|
21633b9bee
|
Bringing back TCP_NODELAY, but also ensuring it doesn't conflict with
--net-delay : Nagle's may infact delay some packets longer than
necessary..
|
2012-01-22 01:07:53 -08:00 |
|
Con Kolivas
|
e15d57d729
|
Implement socks4 proxy support.
|
2012-01-22 09:36:21 +11:00 |
|
Con Kolivas
|
5179d22463
|
Introduce a --net-delay option which guarantees at least 250ms between any networking requests to not overload slow routers.
|
2012-01-20 15:36:42 +11:00 |
|
Luke Dashjr
|
ebe21db3dc
|
Advertise that we can make our own midstate, so the pool can skip generating it for us
|
2012-01-17 22:05:20 -05:00 |
|
Con Kolivas
|
4cf433c917
|
Remove TCP_NODELAY from curl options as many small packets may be contributing to network overload.
|
2012-01-17 16:21:08 +11:00 |
|
Con Kolivas
|
638c8c526f
|
Make curl use a fresh connection if the json rpc call fails for any reason in case curl is relying on dead persistent connections.
|
2012-01-01 14:21:22 +11:00 |
|
Con Kolivas
|
19e373b803
|
All threads are detached so there is no need to join them and it may dereference causing crash on exit.
|
2011-12-30 11:31:16 +11:00 |
|
Kano
|
5033dcd355
|
fix test/set of thr->pth to also work in windows
|
2011-12-27 18:33:49 +11:00 |
|
Con Kolivas
|
2257b5023a
|
Simplify longpoll changeover to just check which pool it should grab its next longpoll from. This should prevent locking hangs and thread cancellation
crashes.
|
2011-12-27 11:40:53 +11:00 |
|
Con Kolivas
|
a51514d9d1
|
White space cleanup.
|
2011-12-27 10:30:04 +11:00 |
|
Con Kolivas
|
b69aa23470
|
Use control_lock to protect thr->pth for thread creation/destruction.
|
2011-12-26 10:50:00 +11:00 |
|
Con Kolivas
|
59293a37d6
|
Only pthread_join when pthread_cancel does not return an error.
|
2011-12-26 09:29:16 +11:00 |
|
Con Kolivas
|
13c40f753b
|
Zero all pthread_t identities upon cancelling threads.
|
2011-12-25 00:06:25 +11:00 |
|
Con Kolivas
|
689f8abbaa
|
Try to use SSL if the server supports it.
|
2011-10-09 12:33:54 +11:00 |
|
Con Kolivas
|
4128b954a6
|
Add a --donation feature which reads a url/userpass from the author's site and contributes a percentage of getworks to the author, but default to off.
|
2011-09-27 11:02:45 +10:00 |
|
Kano
|
8ecd15a616
|
Add BLOCK! notification and remove end of line blanks when not needed
|
2011-09-20 16:19:21 +10:00 |
|
Con Kolivas
|
b8ea0dd194
|
Update curses logging to allow LOG_WARNING and LOG_ERR messages to still go through while within the menu, and drop share message to LOG_NOTICE.
|
2011-09-17 13:25:04 +10:00 |
|
Con Kolivas
|
8e2becc12d
|
Change pth from being a pointer as we can dereference if we're unlucky on stopping longpoll.
|
2011-09-15 11:46:17 +10:00 |
|
Con Kolivas
|
833e020dfd
|
Standardise the way all non-mining threads are destroyed to make sure we can safely cancel them, freeing ram and NULLifying pointers.
|
2011-09-15 10:34:59 +10:00 |
|
Luke Dashjr
|
1f15d7eafa
|
Advertise rollntime extension support
Thanks to raijin for testing!
|
2011-09-10 09:24:33 +10:00 |
|
Con Kolivas
|
a0a5858d15
|
Use the presence of X-Roll-Ntime in the header as a bool for exists unless N is found in the response.
|
2011-09-06 12:00:40 +10:00 |
|
Con Kolivas
|
5d845f2fb1
|
If curl does not have sockopts, do not try to compile the json_rpc_call_sockopt_cb function, making it possible to build against older curl libraries.
|
2011-09-02 10:13:33 +10:00 |
|
Con Kolivas
|
a593afdbeb
|
Use the curses_lock to protect the curses_active variable and test it under lock.
|
2011-08-31 13:23:36 +10:00 |
|
Con Kolivas
|
437d6f05cc
|
Disable curl debugging with opt protocol since it spews to stderr.
|
2011-08-26 13:32:41 +10:00 |
|
Con Kolivas
|
91a2e7012b
|
Actually check the value returned for the x-roll-ntime extension to make sure it isn't saying N.
|
2011-08-26 12:12:54 +10:00 |
|
Con Kolivas
|
666fcc3f55
|
Move staged threads to hashes so we can sort them by time.
|
2011-08-24 12:51:38 +10:00 |
|
Con Kolivas
|
dfec430cb8
|
Make the tcp setsockopts unique to linux in the hope it allows freebsd et. al to compile.
|
2011-08-22 08:05:21 +10:00 |
|
Con Kolivas
|
d89a6c57b1
|
Since we check roll time per work item now, it need only be debug log level.
|
2011-08-18 21:35:05 +10:00 |
|
Con Kolivas
|
3edc1dfe2a
|
Test at appropriate target difficulty now.
|
2011-08-17 22:33:46 +10:00 |
|
Con Kolivas
|
1e77f04481
|
Clean up the longpoll management to ensure the right paths go to the right pool and display whether we're connected to LP or not in the status line.
|
2011-08-17 12:43:39 +10:00 |
|
Con Kolivas
|
426f72dec7
|
As we have keepalives now, blaming network flakiness on timeouts appears to have been wrong.
Set a timeout for longpoll to 1 hour, and most other network connectivity to 1 minute.
|
2011-08-16 10:27:19 +10:00 |
|
Con Kolivas
|
657812ada4
|
Probe for slightly longer for when network conditions are lagging.
|
2011-08-16 10:15:47 +10:00 |
|
Con Kolivas
|
d6dd5d700b
|
Test each work item to see if it can be rolled instead of per-pool and roll whenever possible, adhering to the 60 second timeout.
|
2011-08-14 01:54:47 +10:00 |
|
Con Kolivas
|
5f667e7eab
|
Get rid of extra line feeds.
|
2011-07-30 13:36:08 +10:00 |
|
Con Kolivas
|
53e05c6413
|
Log to the output file at any time with warnings and errors, instead of just when verbose mode is on.
|
2011-07-28 19:55:54 +10:00 |
|