Yeah, maybe pool disconnects you, but i don't think so.
Anyway, i've increased minerTimeout from 900 to 10000 seconds. Check this out.
And post please log, i'm iterested in time difference between starting recv scratchpad and fail message.
On your last logs i see one minute - it means that original 60 seconds timeout happend.
[2014-07-03 15:28:01] Getting full scratchpad....
[2014-07-03 15:28:01] > {"method": "getfullscratchpad", "params": {"id": "321737723262049", "agent": "cpuminer-multi/0.1"}, "id": 1}
[2014-07-03 15:29:01] < {"id":1,"jsonrpc":"2.0","error":null,"result":{"status":"OK","hi":{"block_id":"2e051a359...
[2014-07-03 15:29:01] JSON decode failed(1): premature end of input
With last code it should be 120 seconds, if it is - i'll change code a little once again.
Yes, now there are 120 secs to try to get scratchpad.
./minerd -a wildkeccak -o stratum+tcp://162.243.210.156:7777 -u 1L1ZPC9XodC6g5BX8j8m3vcdkXPiZrVF7RcERWE879coQDWiztUbkkVZ86o43P27Udb3qxL4B41gbaGpvj3nS7DgFZauAZE -p x -P -D -t 1
parsing algo: wildkeccak
[2014-07-04 17:42:18] Using JSON-RPC 2.0
[2014-07-04 17:42:18] 1 miner threads started, using 'wildkeccak' algorithm.
[2014-07-04 17:42:18] Starting Stratum on stratum+tcp://162.243.210.156:7777
* Rebuilt URL to: http://162.243.210.156:7777/
* About to connect() to 162.243.210.156 port 7777 (#0)
* Trying 162.243.210.156...
* TCP_NODELAY set
* Adding handle: conn: 0x7fafe4013550
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x7fafe4013550) send_pipe: 1, recv_pipe: 0
* Connected to 162.243.210.156 (162.243.210.156) port 7777 (#0)
* Connection #0 to host 162.243.210.156 left intact
[2014-07-04 17:42:18] > {"method": "login", "params": {"login": "1L1ZPC9XodC6g5BX8j8m3vcdkXPiZrVF7RcERWE879coQDWiztUbkkVZ86o43P27Udb3qxL4B41gbaGpvj3nS7DgFZauAZE", "pass": "x", "hi": { "height": 0, "block_id": "0000000000000000000000000000000000000000000000000000000000000000" }, "agent": "cpuminer-multi/0.1"}, "id": 1}
[2014-07-04 17:42:19] < {"id":1,"jsonrpc":"2.0","error":null,"result":{"id":"749150593881495","job":{"blob":"","job_id":"","target":"","difficulty":"","prev_hi":{"block_id":"0000000000000000000000000000000000000000000000000000000000000000","height":0}},"status":"OK","addms":[]}}
[2014-07-04 17:42:19] Auth id: 749150593881495
[2014-07-04 17:42:19] Requested work before work was received
[2014-07-04 17:42:19] Getting full scratchpad....
[2014-07-04 17:42:19] > {"method": "getfullscratchpad", "params": {"id": "749150593881495", "agent": "cpuminer-multi/0.1"}, "id": 1}
[2014-07-04 17:44:19] < {"id":1,"jsonrpc":"2.0","error":null,"result":{"status":"OK","hi":{"block_id":"5d63a64b6bf072be5e9372a967c2e376373d90d9749653056cb8c385f806070f","height":34226},"scratchpad_hex":"d73243ee4f03f9d84a82a52ae5ed784053ebb0cf273586efe1f2c6209ff2bbf2d9c8cb207cdaed5532b2c4797aa29be7ebbc607284b9f04d92e3bc185be454f0374bd7745444e629455e7aa06cbdc7b13467cfc7ac8b972f0933d27b77c2cfe1e131359b10b5797e4f756b8f6fc2c4e7cb8d2fbec8355db775369705fcec5f60f43ac2affb46498fbe632a05c02a08ce471dda1643b29f6bc2e2a29cdb8d48cd8550c9998f8550e77aa2ea2dee1086b33e264b3ff9131bf22621ebf24376a763d4f593963dfbe6a8e06da9786d64421f4ee550c4b53220d691b16ae0226f0c1c33daac93cf865969d3d414d7969c714d1d275d43e1400276e4d29bf618e8a8cda7fc90ec93cfb9661675b4ec52d1f065484066062331d8231758085fe93f7d3c2bf52f6650ceee4f5d536d94b84058acca39a20a227c481b7d7e160b30c508fa6c9be455599d4b0c909b555aac4f168df1aad6bff071091d2593ba7d8aa1a66c350e0a36386d0af2db0c1b1dddc0ec1630db51f8327802aa1fa4f3cf95ebdbebfa5b9cdc89fcd6d101c779361db6bab852681f4dfe3784e56...
[2014-07-04 17:44:19] Getting full scratchpad received line
[2014-07-04 17:44:19] JSON decode rpc2_getscratchpad response failed(1): premature end of input
[2014-07-04 17:44:19] ...retry after 10 seconds
[2014-07-04 17:44:29] > {"method": "getjob", "params": {"id": "749150593881495", "hi": { "height": 0, "block_id": "0000000000000000000000000000000000000000000000000000000000000000" }, "agent": "cpuminer-multi/0.1"}, "id": 1}
[2014-07-04 17:44:29] Stratum failed to send getjob line
[2014-07-04 17:44:29] ...retry after 10 seconds
[2014-07-04 17:44:39] Stratum connection timed out
[2014-07-04 17:44:39] Stratum connection interrupted
* Rebuilt URL to: http://162.243.210.156:7777/
* About to connect() to 162.243.210.156 port 7777 (#1)
* Trying 162.243.210.156...
* TCP_NODELAY set
* Adding handle: conn: 0x7fafe4012fb0
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 1 (0x7fafe4012fb0) send_pipe: 1, recv_pipe: 0
* Connected to 162.243.210.156 (162.243.210.156) port 7777 (#1)
* Connection #1 to host 162.243.210.156 left intact
[2014-07-04 17:44:39] > {"method": "login", "params": {"login": "1L1ZPC9XodC6g5BX8j8m3vcdkXPiZrVF7RcERWE879coQDWiztUbkkVZ86o43P27Udb3qxL4B41gbaGpvj3nS7DgFZauAZE", "pass": "x", "hi": { "height": 0, "block_id": "0000000000000000000000000000000000000000000000000000000000000000" }, "agent": "cpuminer-multi/0.1"}, "id": 1}
[2014-07-04 17:44:39] < {"id":1,"jsonrpc":"2.0","error":null,"result":{"id":"898242257372476","job":{"blob":"","job_id":"","target":"","difficulty":"","prev_hi":{"block_id":"0000000000000000000000000000000000000000000000000000000000000000","height":0}},"status":"OK","addms":[]}}
[2014-07-04 17:44:39] Auth id: 898242257372476
[2014-07-04 17:44:39] Requested work before work was received
[2014-07-04 17:44:39] Getting full scratchpad....
[2014-07-04 17:44:39] > {"method": "getfullscratchpad", "params": {"id": "898242257372476", "agent": "cpuminer-multi/0.1"}, "id": 1}
[2014-07-04 17:46:39] < {"id":1,"jsonrpc":"2.0","error":null,"result":{"status":"OK","hi":{"block_id":"5d63a64b6bf072be5e9372a967c2e376373d90d9749653056cb8c385f806070f","height":34226},"scratchpad_hex":"d73243ee4f03f9d84a82a52ae5ed784053ebb0cf273586efe1f2c6209ff2bbf2d9c8cb207cdaed5532b2c4797aa29be7ebbc607284b9f04d92e3bc185be454f0374bd7745444e629455e7aa06cbdc7b13467cfc7ac8b972f0933d27b77c2cfe1e131359b10b5797e4f756b8f6fc2c4e7cb8d2fbec8355db775369705fcec5f60f43ac2affb46498fbe632a05c02a08ce471dda1643b29f6bc2e2a29cdb8d48cd8550c9998f8550e77aa2ea2dee1086b33e264b3ff9131bf22621ebf24376a763d4f593963dfbe6a8e06da9786d64421f4ee550c4b53220d691b16ae0226f0c1c33daac93cf865969d3d414d7969c714d1d275d43e1400276e4d29bf618e8a8cda7fc90ec93cfb9661675b4ec52d1f065484066062331d8231758085fe93f7d3c2bf52f6650ceee4f5d536d94b84058acca39a20a227c481b7d7e160b30c508fa6c9be455599d4b0c909b555aac4f168df1aad6bff071091d2593ba7d8aa1a66c350e0a36386d0af2db0c1b1dddc0ec1630db51f8327802aa1fa4f3cf95ebdbebfa5b9cdc89fcd6d101c779361db6bab852681f4dfe3784e56...
[2014-07-04 17:46:39] Getting full scratchpad received line
[2014-07-04 17:46:39] JSON decode rpc2_getscratchpad response failed(1): premature end of input
[2014-07-04 17:46:39] ...retry after 10 seconds
[2014-07-04 17:46:49] > {"method": "getjob", "params": {"id": "898242257372476", "hi": { "height": 0, "block_id": "0000000000000000000000000000000000000000000000000000000000000000" }, "agent": "cpuminer-multi/0.1"}, "id": 1}
[2014-07-04 17:46:49] Stratum failed to send getjob line
[2014-07-04 17:46:49] ...retry after 10 seconds
[2014-07-04 17:46:59] Stratum connection timed out
[2014-07-04 17:46:59] Stratum connection interrupted
* Rebuilt URL to: http://162.243.210.156:7777/
* About to connect() to 162.243.210.156 port 7777 (#2)
* Trying 162.243.210.156...
* TCP_NODELAY set
* Adding handle: conn: 0x7fafe4012bf0
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 2 (0x7fafe4012bf0) send_pipe: 1, recv_pipe: 0
* Connected to 162.243.210.156 (162.243.210.156) port 7777 (#2)
* Connection #2 to host 162.243.210.156 left intact
[2014-07-04 17:46:59] > {"method": "login", "params": {"login": "1L1ZPC9XodC6g5BX8j8m3vcdkXPiZrVF7RcERWE879coQDWiztUbkkVZ86o43P27Udb3qxL4B41gbaGpvj3nS7DgFZauAZE", "pass": "x", "hi": { "height": 0, "block_id": "0000000000000000000000000000000000000000000000000000000000000000" }, "agent": "cpuminer-multi/0.1"}, "id": 1}
[2014-07-04 17:46:59] < {"id":1,"jsonrpc":"2.0","error":null,"result":{"id":"259302847879007","job":{"blob":"","job_id":"","target":"","difficulty":"","prev_hi":{"block_id":"0000000000000000000000000000000000000000000000000000000000000000","height":0}},"status":"OK","addms":[]}}
[2014-07-04 17:46:59] Auth id: 259302847879007
[2014-07-04 17:46:59] Requested work before work was received
[2014-07-04 17:46:59] Getting full scratchpad....
[2014-07-04 17:46:59] > {"method": "getfullscratchpad", "params": {"id": "259302847879007", "agent": "cpuminer-multi/0.1"}, "id": 1}
^C