Constantly getting connection interrupted
I'm doing:

minerd -a scrypt --threads=1 -o stratum+tcp://us.litecoinpool.org:3333 -O ab1jx.4:4


From a script and it works fine.  ab1jx is my username on litecoinpool, worker is 4, password is 4.  Only 1 thread to make it sort of a background process, leave that out to run at full throttle.

I don't get accepted lines often either with cpuminer, I assume because it's so slow.  I do with my ASIC miners.  I see the restarts a lot more often.  Sometimes I get accepted (and a yay) but this is a few orders of magnitude slower than everybody else, so it comes later than everybody else and may get tossed.  Not sure if you still get credited for it.  Check your stats on the pool after an hour or so, that's what counts.

No CPU miner is going to be profitable because it burns more electricity than the coins are worth.  Unless you have free electricity like solar or geothermal.  I do it as a test load on the computer and network.  If it's winter and you heat with electricity anyway it might work out.