Hi again, Sorry to reopen this thread after so long, but I'm in another project with a similar problem.
One thing I'm noticing is that, even after the OS closes the connection (i.e., it doesn't appear in netstat -an) my handler isn't getting any of the Tcp.ConnectionClosed messages. Is that normal? It looks bizarre to me. What I'm doing is, starting a client that makes a connection, then doing a kill -9 to simulate the client crashing (or the client machine turning off). The socket stays there for a while (again checking via netstat -an) but eventually the OS closes it. Akka is not sending any message to indicate that the socket has been closed. Any ideas short of doing what Roiland suggested earlier? (i.e., modifying the protocol to periodically send some data). Thanks, -Mario. On Friday, December 27, 2013 9:26:46 PM UTC+1, Mario Camou wrote: > > Hi, > > I’m using Akka I/O and am trying to set the SO_TIMEOUT socket value. > > Looking at the docs, I see that the Tcp.Bind message receives a > Traversable[SocketOption]. However, looking at the docs for > akka.io.Inet.SocketOption, the only subclasses are Broadcast, KeepAlive, > OOBInline, ReceiveBufferSize, ReuseAddress, SendBufferSize, TcpNoDelay and > TrafficClass. The superclass for the only SoTimeout class I see > (akka.actor.IO.SoTimeout) is akka.actor.IO.SocketOption which I assume is > part of the old (Iteratee-based) Akka I/O. > > So, how to set the SO_TIMEOUT using the new Akka I/O? Also, how to reset > the SO_TIMEOUT once the socket has been opened? > > In my use case I need to set a relatively short SO_TIMEOUT value when the > socket is first connected, and bump it up a bit after receiving the first > actual message. > > Thanks, > -Mario > — > I want to change the world, but they won’t give me the source code > > -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
