Re: [akka-user] Akka HTTP bind exception on Windows

2016-04-08 Thread Endre Varga
But first, please file a ticket! On Fri, Apr 8, 2016 at 11:24 AM, Viktor Klang wrote: > And to clarify, by "we", anyone reading this or the Issue is eligible for > fixing it :) > > On Fri, Apr 8, 2016 at 10:11 AM, Endre Varga > wrote: > >> Hi

Re: [akka-user] Akka HTTP bind exception on Windows

2016-04-08 Thread Viktor Klang
And to clarify, by "we", anyone reading this or the Issue is eligible for fixing it :) On Fri, Apr 8, 2016 at 10:11 AM, Endre Varga wrote: > Hi Michael, > > No, Akka HTTP uses Akka's own TCP stack, we don't use Netty there. I guess > we should just fix this in the

Re: [akka-user] Akka HTTP bind exception on Windows

2016-04-08 Thread Endre Varga
Hi Michael, No, Akka HTTP uses Akka's own TCP stack, we don't use Netty there. I guess we should just fix this in the next release. -Endre On Fri, Apr 8, 2016 at 8:47 AM, Michi wrote: > Hi, > > is Akka HTTP still using Netty? To solve the problem I built

Re: [akka-user] Akka HTTP bind exception on Windows

2016-04-08 Thread Michi
Hi, is Akka HTTP still using Netty? To solve the problem I built a small HTTP server using Netty that just creates a Akka HttpRequest from a Netty HttpRequest. This is a bit of a hack but I needed a quick solution because our customer gets really impatient and I just needed something that

Re: [akka-user] Akka HTTP bind exception on Windows

2016-04-07 Thread Antti Nevala
No problem, glad to help you. -Antti On Thursday, April 7, 2016 at 3:57:09 PM UTC+3, drewhk wrote: > > Oh, you are our savior! I am 99% sure that that is the solution we are > looking after, thanks! > > -Endre > > On Thu, Apr 7, 2016 at 2:35 PM, Antti Nevala > wrote: > >>

Re: [akka-user] Akka HTTP bind exception on Windows

2016-04-07 Thread Viktor Klang
if (isWindows) selector.select(1) // :( On Thu, Apr 7, 2016 at 2:57 PM, Endre Varga wrote: > Oh, you are our savior! I am 99% sure that that is the solution we are > looking after, thanks! > > -Endre > > On Thu, Apr 7, 2016 at 2:35 PM, Antti Nevala

Re: [akka-user] Akka HTTP bind exception on Windows

2016-04-07 Thread Endre Varga
Oh, you are our savior! I am 99% sure that that is the solution we are looking after, thanks! -Endre On Thu, Apr 7, 2016 at 2:35 PM, Antti Nevala wrote: > Hi, > > I'm not sure if this is related but found similar problem from another > project and workaround how to solve

Re: [akka-user] Akka HTTP bind exception on Windows

2016-04-07 Thread Antti Nevala
Hi, I'm not sure if this is related but found similar problem from another project and workaround how to solve it: https://github.com/kaazing/nuklei/issues/20 -Antti On Thursday, April 7, 2016 at 11:07:03 AM UTC+3, drewhk wrote: > > Hi, > > > On Tue, Apr 5, 2016 at 8:40 PM, Michi

Re: [akka-user] Akka HTTP bind exception on Windows

2016-04-07 Thread Endre Varga
Hi, On Tue, Apr 5, 2016 at 8:40 PM, Michi wrote: > Hi, > > I think SO_REUSEADDR is enabled by default for Akka HTTP. At least it > looks like that when I looked at the code. But even if it is disabled, the > OS should not need ten minutes to release the

Re: [akka-user] Akka HTTP bind exception on Windows

2016-04-05 Thread Michi
Hi, I think SO_REUSEADDR is enabled by default for Akka HTTP. At least it looks like that when I looked at the code. But even if it is disabled, the OS should not need ten minutes to release the socket. Maybe I write a simple test program tomorrow that demonstrates the problem. My problem

Re: [akka-user] Akka HTTP bind exception on Windows

2016-04-05 Thread Endre Varga
Have you tried to add a configuration (ServerSettings) when you bind the TCP which enables the ReuseAddress ( http://doc.akka.io/api/akka/2.4.3/#akka.io.Inet$$SO$$ReuseAddress) option? -Endre On Tue, Apr 5, 2016 at 6:29 PM, Endre Varga wrote: > But that code uses

Re: [akka-user] Akka HTTP bind exception on Windows

2016-04-05 Thread Endre Varga
But that code uses SO_REUSEADDR. -Endre On Tue, Apr 5, 2016 at 5:50 PM, Michi wrote: > Hi Endre, > > I wrote a small test program that creates a socket channel, closes it and > creates another one using the same port: > > import java.io.IOException; >

Re: [akka-user] Akka HTTP bind exception on Windows

2016-04-05 Thread Roland Kuhn
[forget the last paragraph, found the answer in the first post] > 5 apr 2016 kl. 18:00 skrev Roland Kuhn : > >> >> 5 apr 2016 kl. 17:50 skrev Michi > >: >> >> Hi Endre, >> >> I wrote a

Re: [akka-user] Akka HTTP bind exception on Windows

2016-04-05 Thread Roland Kuhn
> 5 apr 2016 kl. 17:50 skrev Michi : > > Hi Endre, > > I wrote a small test program that creates a socket channel, closes it and > creates another one using the same port: > > import java.io.IOException; > import java.net.InetSocketAddress; > import

Re: [akka-user] Akka HTTP bind exception on Windows

2016-04-05 Thread Michi
Hi Endre, I wrote a small test program that creates a socket channel, closes it and creates another one using the same port: import java.io.IOException; import java.net.InetSocketAddress; import java.net.SocketAddress; import java.net.StandardSocketOptions; import

Re: [akka-user] Akka HTTP bind exception on Windows

2016-04-05 Thread Endre Varga
On Tue, Apr 5, 2016 at 5:04 PM, Michi wrote: > Hi Endre, > > even after 10 Minutes TCPView shows that the socket is still bound by > jawaw.exe. If I close the application, the socket gets unbound immediately. > That's why I am wondering if I do something

Re: [akka-user] Akka HTTP bind exception on Windows

2016-04-05 Thread Michi
Hi Endre, even after 10 Minutes TCPView shows that the socket is still bound by jawaw.exe. If I close the application, the socket gets unbound immediately. That's why I am wondering if I do something wrong or if this is a bug in Akka HTTP. I tried to use a independent Actor System for the

Re: [akka-user] Akka HTTP bind exception on Windows

2016-04-05 Thread Endre Varga
Hi, As far as I know event though NIO reports the unbind, unbinding on Windows is not immediate and you are not guaranteed to be able to bind again immediately. I don't know if this comes from Windows or the NIO windows drivers though. -Endre On Tue, Apr 5, 2016 at 2:05 PM, Michi

[akka-user] Akka HTTP bind exception on Windows

2016-04-05 Thread Michi
Hi, we have a problem with Akka HTTP on Windows: after creating a server binding and unbinding it, it is not possible to bind it again. We get a akka.stream.BindFailedException. On Linux, this works without problems. The application uses the following code to create the server binding: