> I'm on
> OSX 10.7.4,
> using JDK "1.6.0_35" Java(TM) SE Runtime Environment (build 1.6.0_35-b10-428-11M3811) Java HotSpot(TM) 64-Bit Server VM (build 20.10-b01-428, mixed mode)
> Scala 2.9.2,
> Spray 1.0-M2
If you are only using spray-client then upgrading to 1.0-M3 shouldn't be too much of a problem.
Could you try again with the latest release?
Cheers,
Mathias
---
mat...@spray.io
http://www.spray.io
On 15.10.2012, at 09:44, Anirvan Chakraborty wrote:
> Hi Guys,
>
> I'm experiencing exactly the same issue of "Closing connection due to PeerClosed" as reported by stevem.
>
> Here is my stack trace:
>
> [DEBUG] [10/15/2012 08:17:26.906] [SYNC-akka.actor.default-dispatcher-2] [akka://SYNC/user/$c] started (cc.spray.client.HttpConduit$MainActor@254a6c0d)
>
> [DEBUG] [10/15/2012 08:17:26.907] [SYNC-akka.actor.default-dispatcher-2] [akka://SYNC/user/$c] Opening connection 1 to
www.google.co.uk:80
>
> [DEBUG] [10/15/2012 08:17:26.910] [SYNC-akka.actor.default-dispatcher-2] [akka://SYNC/user/$c] stopped
>
> [DEBUG] [10/15/2012 08:17:31.697] [spray-io-worker-0] [IoWorker] Executing command Send(cc.spray.io.ConnectionActors$$anon$1@7a8f9805,List(java.nio.HeapByteBuffer[pos=0 lim=232 cap=1024]),true)
>
> [DEBUG] [10/15/2012 08:17:31.697] [spray-io-worker-0] [IoWorker] Writing to connection
>
> [DEBUG] [10/15/2012 08:17:31.698] [spray-io-worker-0] [IoWorker] Writing to connection
>
> [DEBUG] [10/15/2012 08:17:31.698] [spray-io-worker-0] [IoWorker] Wrote 0 bytes
>
> [DEBUG] [10/15/2012 08:17:31.856] [spray-io-worker-0] [IoWorker] Reading from connection
>
> [DEBUG] [10/15/2012 08:17:31.856] [spray-io-worker-0] [IoWorker] Read 405 bytes
>
> [DEBUG] [10/15/2012 08:17:31.859] [SYNC-akka.actor.default-dispatcher-3] [akka://SYNC/user/$b] Received HttpRequest(GET,/favicon.ico,List(Cookie: m="3234:t|6493:t|6967:t|34e2:|47ba:t|c01:t"; splashShown1.6="1", Accept-Charset: ISO-8859-1, UTF-8, *, Accept-Language: en-US, en, Accept-Encoding: gzip, deflate, sdch, user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.79 Safari/537.4, Accept: */*, Connection: keep-alive, Host: localhost:8899),None,HTTP/1.1) with one attached service, dispatching...
>
> [DEBUG] [10/15/2012 08:17:31.859] [SYNC-akka.actor.default-dispatcher-2] [akka://SYNC/user/root-service] Received HttpRequest(GET,/favicon.ico,List(Cookie: m="3234:t|6493:t|6967:t|34e2:|47ba:t|c01:t"; splashShown1.6="1", Accept-Charset: ISO-8859-1, UTF-8, *, Accept-Language: en-US, en, Accept-Encoding: gzip, deflate, sdch, user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.79 Safari/537.4, Accept: */*, Connection: keep-alive, Host: localhost:8899),None,HTTP/1.1) with one attached service, dispatching...
>
> [DEBUG] [10/15/2012 08:17:31.863] [spray-io-worker-0] [IoWorker] Executing command Send(cc.spray.io.ConnectionActors$$anon$1@7a8f9805,List(java.nio.HeapByteBuffer[pos=0 lim=174 cap=1024]),true)
>
> [DEBUG] [10/15/2012 08:17:31.864] [spray-io-worker-0] [IoWorker] Writing to connection
>
> [DEBUG] [10/15/2012 08:17:31.864] [spray-io-worker-0] [IoWorker] Writing to connection
>
> [DEBUG] [10/15/2012 08:17:31.864] [spray-io-worker-0] [IoWorker] Wrote 0 bytes
>
> [DEBUG] [10/15/2012 08:17:41.880] [SYNC-akka.actor.default-dispatcher-3] [akka://SYNC/user/sync-server] Closing connection due to idle timeout...
>
> [DEBUG] [10/15/2012 08:17:41.881] [spray-io-worker-0] [IoWorker] Executing command Close(cc.spray.io.ConnectionActors$$anon$1@7a8f9805,IdleTimeout)
>
> [DEBUG] [10/15/2012 08:17:41.881] [spray-io-worker-0] [IoWorker] Closing connection due to IdleTimeout
>
> [DEBUG] [10/15/2012 08:17:41.881] [SYNC-akka.actor.default-dispatcher-3] [akka://SYNC/user/sync-server] Stopping connection actor, connection was closed due to IdleTimeout
>
> [DEBUG] [10/15/2012 08:17:41.882] [SYNC-akka.actor.default-dispatcher-3] [akka://SYNC/user/sync-server/$a] stopped
>
> [DEBUG] [10/15/2012 08:17:42.89] [spray-io-worker-0] [IoWorker] Reading from connection
>
> [DEBUG] [10/15/2012 08:17:42.90] [spray-io-worker-0] [IoWorker] Closing connection due to PeerClosed
>
> [DEBUG] [10/15/2012 08:17:42.90] [SYNC-akka.actor.default-dispatcher-3] [akka://SYNC/user/sync-server] Stopping connection actor, connection was closed due to PeerClosed
>
> [DEBUG] [10/15/2012 08:17:42.90] [SYNC-akka.actor.default-dispatcher-3] [akka://SYNC/user/sync-server/$b] stopped
>
> I'm on
> OSX 10.7.4,
> using JDK "1.6.0_35" Java(TM) SE Runtime Environment (build 1.6.0_35-b10-428-11M3811) Java HotSpot(TM) 64-Bit Server VM (build 20.10-b01-428, mixed mode)
> Scala 2.9.2,
> Spray 1.0-M2
>
> What are we missing here?
>
> Any help would be much appreciated.
>
> Thanks,
> Ani.
> --
>
>