|
eb9278ca
|
2013-07-19T19:32:57
|
|
Check for negative wait time in socket_full.
|
|
f2ae7fad
|
2013-07-19T19:09:23
|
|
Adjust socket wait timeout in recv_line according to how long we've already waited to avoid a 60 second wait dropping to 1 second due to a blocked socket.
|
|
1b5ea442
|
2013-06-21T18:02:38
|
|
Show an integer only for diff if it is one.
|
|
6560878e
|
2013-06-16T22:33:49
|
|
Suspend stratum connections when we know they've failed and don't try to recv data from them once the socket no longer exists.
|
|
13a4aaa6
|
2013-06-13T14:31:37
|
|
Failure to read and write on pseudo semaphores on apple happens routinely on shut down so should not be a quit error, just a warning.
|
|
12a2cb0d
|
2013-06-09T22:37:49
|
|
Demote failed hex2bin result to LOG_INFO and check return result in driver-bflsc to avoid doing find_work_by_midstate.
|
|
9b2e517f
|
2013-06-09T12:20:04
|
|
Use cgsem structures instead of the flaky pings in the work queue to start mining threads and remove the unused thr_info_freeze function.
|
|
104b14ec
|
2013-06-06T13:22:12
|
|
Failed reads and writes on cgsem_post and cgsem_wait should be extremely rare.
|
|
b59c3380
|
2013-06-06T13:08:00
|
|
Implement cgminer specific cgsem semaphores to imitate unnamed semaphore behaviour on osx which does not support them.
|
|
d52ab244
|
2013-05-28T23:00:14
|
|
Provide an nusleep equivalent function to nmsleep.
|
|
64b08f38
|
2013-05-19T10:23:59
|
|
All stratum calls to recv_line are serialised from the one place so there is no need to use locking around recv().
|
|
f227515e
|
2013-05-18T13:09:01
|
|
Set pool->probed to true after an attempt to resolve the url via stratum code.
|
|
3336880e
|
2013-05-13T22:42:39
|
|
Show pool difficulty more verbosely if it changes via stratum.
|
|
c5bfc452
|
2013-05-11T23:32:57
|
|
Update util.c
Apple OS/X does not define MSG_NOSIGNAL. Use SO_NOSIGPIPE instead
|
|
3972fe22
|
2013-05-11T15:03:40
|
|
Show a different warning and loglevel for failure to resolve a URL on first or subsequent testing of stratum pool URLs.
|
|
2645797f
|
2013-05-09T22:04:33
|
|
Set all stratum sockets to nonblocking to avoid trying to use MSG_DONTWAIT on windows.
|
|
d89936a9
|
2013-05-09T21:10:53
|
|
Fix warnings on win32 build.
|
|
832012f6
|
2013-05-09T13:42:53
|
|
Only use MSG_NOSIGNAL for !win32 since it doesn't exist on windows.
|
|
6acfdbd6
|
2013-05-09T13:36:34
|
|
Use MSG_NOSIGNAL on stratum send()
|
|
a7cbbc9f
|
2013-05-09T12:08:42
|
|
Set TCP_NODELAY for !linux for raw sockets.
|
|
0676a1a8
|
2013-05-09T12:00:28
|
|
Use TCP_NODELAY with raw sockets if !opt_delaynet
|
|
68196588
|
2013-05-09T11:39:09
|
|
Make raw sockets compile on windows
|
|
43bcccf8
|
2013-05-09T10:41:27
|
|
Recheck select succeeds on EWOULDBLOCK for stratum.
|
|
6e969e93
|
2013-05-08T22:52:18
|
|
Recv() should all be non-blocking for raw sockets in stratum.
|
|
cf80fe4a
|
2013-05-08T22:41:28
|
|
Change verbosity and error for getaddrinfo warnings in setup stratum socket.
|
|
1a43cb0b
|
2013-05-08T22:11:01
|
|
Free servinfo after p is checked in setup stratum socket.
|
|
31aa4f6c
|
2013-05-08T21:59:58
|
|
Use raw sockets without curl for stratum communications.
|
|
657e6447
|
2013-05-08T06:28:07
|
|
Sacrifice curl handle memory on stratum disconnects on all versions of libcurl to avoid curl corruption.
|
|
891f88b6
|
2013-05-06T16:54:55
|
|
Don't use TCP_NODELAY if opt_delaynet is enabled with stratum.
|
|
2ce2f8d8
|
2013-05-02T23:36:04
|
|
util correct applog typing
|
|
863c9e27
|
2013-04-26T14:49:10
|
|
util.c str_text make a fully text readable version of str
|
|
d835ef75
|
2013-04-24T23:16:21
|
|
Receive failures in recv_line should unconditionally fail.
|
|
06f7f525
|
2013-04-24T23:14:41
|
|
Revert "Add more debugging to recv_line parse failure."
This reverts commit b615502b2b68571a2574568fa838d82b173f6c24.
Unnecessary.
|
|
af60a19d
|
2013-04-24T23:07:42
|
|
Use sock_blocks function for stratum send and receive.
|
|
181cb163
|
2013-04-24T21:26:44
|
|
There should be no error response code with return value 0 in recv_line.
|
|
b615502b
|
2013-04-24T21:14:20
|
|
Add more debugging to recv_line parse failure.
|
|
e95695db
|
2013-04-24T20:44:41
|
|
Check for errors on stratum recv for any recv return value less than 1 and only parse the response if it's positive.
|
|
e00a1b0e
|
2013-04-22T11:19:15
|
|
compile on win32
|
|
d2abaa83
|
2013-04-22T10:49:10
|
|
Provide wrappers for commonly used timer routines with API stats.
|
|
3cc42231
|
2013-04-22T09:53:34
|
|
Fulltest is true if value is <= target.
|
|
3c61a51e
|
2013-04-22T09:48:41
|
|
Use system host to endian functions for clarity in fulltest.
|
|
3d7f8243
|
2013-04-21T19:02:44
|
|
Create a cgminer specific gettimeofday wrapper that is always called with tz set to NULL and increases the resolution on windows.
|
|
3b5ef343
|
2013-04-21T18:01:49
|
|
Add high resolution to nmsleep wrapper on windows.
|
|
36bb133e
|
2013-04-15T12:34:34
|
|
Cleanup when stratum curl fails to initialise.
|
|
81549c5b
|
2013-04-15T12:16:05
|
|
Avoid applog in recalloc_sock.
|
|
69c203d8
|
2013-04-15T12:07:52
|
|
Avoid applog under stratum_lock in recv_line.
|
|
e4effc37
|
2013-04-15T12:01:24
|
|
Avoid applog under stratum_lock in __stratum_send.
|
|
d248e7aa
|
2013-04-15T11:50:59
|
|
Put spacing around locking in util.c for clarity.
|
|
c1ec55a6
|
2013-04-09T07:08:09
|
|
Avoid curl_easy_cleanup on old curl versions in setup_stratum_curl as well.
|
|
1e14748c
|
2013-04-06T15:49:55
|
|
Small timeouts on select() instead of instant timeout increase reliability of socket reads and writes.
|
|
ae4ee34a
|
2013-04-06T15:49:55
|
|
Small timeouts on select() instead of instant timeout increase reliability of socket reads and writes.
|
|
c6ca12f0
|
2013-04-06T11:21:55
|
|
Differentiate socket closed from socket error in recv_line.
|
|
2f89eef4
|
2013-04-06T11:21:55
|
|
Differentiate socket closed from socket error in recv_line.
|
|
b6e3d5b4
|
2013-03-14T22:34:53
|
|
Make pool adding while running asynchronous, using the pool test thread functionality.
|
|
1a74bc56
|
2013-03-14T22:08:19
|
|
Only curl easy cleanup a stratum curl if it exists.
|
|
195ea635
|
2013-03-14T22:05:42
|
|
Sacrifice the ram of curl handles in stratum disconnects when we have built with old libcurl to avoid crashes.
|
|
26ddd1fd
|
2013-03-12T22:31:45
|
|
Move the stratum and GBT data to be protected under a new cg_lock data_lock.
|
|
66c567ab
|
2013-03-09T12:13:12
|
|
Use curl_easy_cleanup to close any open stratum sockets.
|
|
7e3ca570
|
2013-03-09T10:41:36
|
|
Set sockd to false should curl setup fail on stratum.
|
|
56068d68
|
2013-03-09T10:30:58
|
|
Close any open sockets when reusing a curl handle and reopen the socket whenever we're retrying stratum.
|
|
09c02b1c
|
2013-03-07T22:02:51
|
|
Shorten the time before keepalive probes are sent out and how frequently they're sent with stratum curls.
|
|
501f4cd6
|
2013-03-07T19:59:30
|
|
Clear the socket of anything in the receive buffer if we're going to retry connecting.
|
|
c9b4f5c7
|
2013-03-07T15:34:44
|
|
Revert "Cope with out of order messages coming in upon attempting to auth_stratum."
This reverts commit 237f67c6178bd8f4c5e9f807cdf9a010d17e9684.
|
|
ed903ddf
|
2013-03-07T15:13:32
|
|
Clear just the socket buffer when we don't care what is left in a stratum socket.
|
|
fbb25c4b
|
2013-03-07T15:10:38
|
|
Clear the stratum socket whenever we are closing it since the buffer is going to be reused.
|
|
0810212c
|
2013-03-07T14:20:33
|
|
Reset stratum_notify flag on suspend_stratum as well.
|
|
07ae6172
|
2013-03-07T14:15:28
|
|
Close any sockets opened if we fail to initiate stratum but have opened the socket.
|
|
6875dc46
|
2013-03-07T13:50:25
|
|
Close any existing stratum socket if we are attempting to restart stratum so the pool knows the connection has gone.
|
|
237f67c6
|
2013-03-07T11:36:04
|
|
Cope with out of order messages coming in upon attempting to auth_stratum.
|
|
e3151799
|
2013-03-07T08:42:14
|
|
Implement client.show_message support for stratum.
|
|
0be6e9e7
|
2013-03-06T21:00:16
|
|
Make sure to retry only once with noresume support for stratum.
|
|
5abcf06b
|
2013-02-25T10:44:54
|
|
Merge branch 'master' into usb-dev
|
|
3c949e5f
|
2013-02-25T10:38:28
|
|
Try to extract the sessionid associated with mining.notify on 3rd level array and submit it along with the userid to support mining resume, failing gracefully and restarting if the pool rejects it.
|
|
5a3b3749
|
2013-02-25T08:59:11
|
|
Update copyright dates.
|
|
6bf79626
|
2013-02-23T13:59:37
|
|
Merge branch 'master' into usb-dev
|
|
3dcdb949
|
2013-02-23T13:07:47
|
|
Cope with misread sessionid on stratum for now.
|
|
6a0882f0
|
2013-02-22T16:55:39
|
|
Use the sessionid as passed on stratum connect to attempt to resume a connection once and then clear it if it fails, to use a new connection.
|
|
68d69109
|
2013-02-22T12:55:01
|
|
Move to storing the nonce1 in the work struct instead of the sessionid for the now defunct first draft mining.resume protocol.
|
|
22a50a5a
|
2013-02-17T00:10:36
|
|
Merge branch 'usb-dev' of github.com:ckolivas/cgminer into usb-dev
|
|
a7859bb4
|
2013-02-16T03:52:06
|
|
Merge pull request #386 from luke-jr/bugfix_20130215a
Bugfix: Missing pool_no parameter to applog for no-stratum-sessionid debug message
|
|
7473c3dc
|
2013-02-16T05:06:38
|
|
Bugfix: Missing pool_no parameter to applog for no-stratum-sessionid debug message
|
|
4266245a
|
2013-02-16T14:15:17
|
|
Merge remote-tracking branch 'conman/master' into bflsc
|
|
ab0cc58c
|
2013-02-15T23:15:11
|
|
Merge branch 'master' into usb-dev
|
|
be4705a0
|
2013-02-15T23:05:29
|
|
Provide support for mining.resume with stratum, currently re-authorising after successful resumption pending finalising of the protocol process.
|
|
4cde791e
|
2013-02-15T21:31:44
|
|
Provide basic framework for restarting stratum depending on whether resume support exists or not.
|
|
c29df976
|
2013-02-15T21:03:39
|
|
Abstract out the setting up of the stratum curl socket.
|
|
c851f395
|
2013-02-15T14:46:30
|
|
Store session id for stratum if the pool supports it for future mining.resume support.
|
|
c432c655
|
2013-02-13T14:50:55
|
|
debug_cb buffer type warning
|
|
3c91b292
|
2013-02-07T18:02:38
|
|
Merge branch 'master' into usb-dev
|
|
903c6663
|
2013-02-07T16:38:11
|
|
Fix logic fail on partial writes with stratum send that was leading to corrupt message submissions.
|
|
0244998e
|
2013-02-04T11:23:20
|
|
Merge branch 'master' into usb-dev
|
|
d644fdf1
|
2013-02-04T11:19:12
|
|
Cache the coinbase length to speed up stratum work generation.
|
|
0870ab75
|
2013-02-04T11:06:05
|
|
Cache the header length when generating stratum work to avoid calculating it on every work generation, and to only need one alloc+sprintf, speeding up work generation.
|
|
51d11a28
|
2013-02-04T10:19:12
|
|
Provide a wrapper for aligning lengths of size_t to 4 byte boundaries.
|
|
c1eae36f
|
2013-01-15T01:13:00
|
|
API stats - include pool network bytes + in miner.php
|
|
e1387dc8
|
2012-12-29T11:29:59
|
|
Change the pool stratum socket buffer to be dynamically allocated to accomodate any size coinbase and keep receiving data in recv line for up to 60s if no end of line has been received.
|
|
6e2e7d36
|
2012-12-29T10:46:55
|
|
Differentiate socket full from sock full.
|
|
7f46f6e9
|
2012-12-29T10:42:45
|
|
Allow stratum to startup without notify but check it is valid before creating stratum work.
|
|
e1d7ecdd
|
2012-12-29T09:45:40
|
|
Do not try to generate stratum work unless the notify command has succeeded.
|
|
944af31b
|
2012-12-26T09:31:41
|
|
Parse anything in the stratum socket if it's full without waiting. Empty the socket even if a connection is not needed in case there are share returns.
|