comp.lang.ada
 help / color / mirror / Atom feed
* AWS and deconnection
@ 2008-06-04  9:29 Sébastien Morand
  2008-06-04 10:37 ` Pascal Obry
  0 siblings, 1 reply; 6+ messages in thread
From: Sébastien Morand @ 2008-06-04  9:29 UTC (permalink / raw)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I'm using AWS for developping a Web application but I got some problems
during my tests.

Actually whenever I launch the application (for instance on port 8000) I
test somes pages, everything is fine. But I have to make a fast
modification (let's say, about 1 minute) and then I try to launch again,
I got the following error message:

raised AWS.NET.SOCKET_ERROR : Bind : [98] Address already in use

The point is, there is still TIME_WAIT after the shutdown of the server.
How can I be sure that the connection are all properly closed before
ending the server?

I'm using the shutdown method of AWS, but it looks like it's not enough.

thanks by adance,
Sebastien
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)

iD8DBQFIRmCG+zV9xm4PlDQRAkK/AKCJpALSedi0CGnodynUfUTHZQOT6wCfRYD5
+1c0WA1YP44fPZRI1dzBu24=
=Djsj
-----END PGP SIGNATURE-----



^ permalink raw reply	[flat|nested] 6+ messages in thread

* AWS and deconnection
@ 2008-06-04  9:31 Sébastien Morand
  2008-06-04  9:48 ` Stefan Naewe
  0 siblings, 1 reply; 6+ messages in thread
From: Sébastien Morand @ 2008-06-04  9:31 UTC (permalink / raw)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I'm using AWS for developping a Web application but I got some problems
during my tests.

Actually whenever I launch the application (for instance on port 8000) I
test somes pages, everything is fine. But I have to make a fast
modification (let's say, about 1 minute) and then I try to launch again,
I got the following error message:

raised AWS.NET.SOCKET_ERROR : Bind : [98] Address already in use

The point is, there is still TIME_WAIT after the shutdown of the server.
How can I be sure that the connection are all properly closed before
ending the server?

I'm using the shutdown method of AWS, but it looks like it's not enough.

thanks by adance,
Sebastien
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)

iD8DBQFIRmCG+zV9xm4PlDQRAkK/AKCJpALSedi0CGnodynUfUTHZQOT6wCfRYD5
+1c0WA1YP44fPZRI1dzBu24=
=Djsj
-----END PGP SIGNATURE-----



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: AWS and deconnection
  2008-06-04  9:31 Sébastien Morand
@ 2008-06-04  9:48 ` Stefan Naewe
  0 siblings, 0 replies; 6+ messages in thread
From: Stefan Naewe @ 2008-06-04  9:48 UTC (permalink / raw)


On 6/4/2008 11:31 AM, Sébastien Morand wrote:
> Hi,
> 
> I'm using AWS for developping a Web application but I got some problems
> during my tests.
> 
> Actually whenever I launch the application (for instance on port 8000) I
> test somes pages, everything is fine. But I have to make a fast
> modification (let's say, about 1 minute) and then I try to launch again,
> I got the following error message:
> 
> raised AWS.NET.SOCKET_ERROR : Bind : [98] Address already in use
> 
> The point is, there is still TIME_WAIT after the shutdown of the server.
> How can I be sure that the connection are all properly closed before
> ending the server?
> 
> I'm using the shutdown method of AWS, but it looks like it's not enough.
> 
> thanks by adance,
> Sebastien

GIYF:

http://hea-www.harvard.edu/~fine/Tech/addrinuse.html

S.
-- 
Stefan Naewe            stefan dot naewe at atlas-elektronik dot com
Don't top-post  http://www.catb.org/~esr/jargon/html/T/top-post.html
Plain text mails only, please      http://www.expita.com/nomime.html



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: AWS and deconnection
  2008-06-04  9:29 AWS and deconnection Sébastien Morand
@ 2008-06-04 10:37 ` Pascal Obry
  2008-06-04 11:26   ` Sébastien Morand
  0 siblings, 1 reply; 6+ messages in thread
From: Pascal Obry @ 2008-06-04 10:37 UTC (permalink / raw)
  To: Sébastien Morand

S�bastien,

> Actually whenever I launch the application (for instance on port 8000) I
> test somes pages, everything is fine. But I have to make a fast
> modification (let's say, about 1 minute) and then I try to launch again,
> I got the following error message:
> 
> raised AWS.NET.SOCKET_ERROR : Bind : [98] Address already in use

This is expected and OS dependent. There is no such problem on Windows 
for example. This is a security issue AFAIK. It is not possible to reuse 
an address for some time after a process has been using it.

For production it is better.

While developing it is possible to set "reuse_address" to 'true" either 
using a .ini file or dynamically into a config object.

Note that all AWS questions are best addressed into the AWS's mailing-list.

Pascal.

-- 

--|------------------------------------------------------
--| Pascal Obry                           Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--|              http://www.obry.net
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: AWS and deconnection
  2008-06-04 10:37 ` Pascal Obry
@ 2008-06-04 11:26   ` Sébastien Morand
  2008-06-04 12:00     ` Pascal Obry
  0 siblings, 1 reply; 6+ messages in thread
From: Sébastien Morand @ 2008-06-04 11:26 UTC (permalink / raw)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> This is expected and OS dependent. There is no such problem on Windows
> for example. This is a security issue AFAIK. It is not possible to reuse
> an address for some time after a process has been using it.
> 
> For production it is better.

We agree

> While developing it is possible to set "reuse_address" to 'true" either
> using a .ini file or dynamically into a config object.

Thanks, I know where it comes from, but I thought it could have a way
from the server to close properly the connection whithout caring what
the client is doing, but there is not, and it's clearly an OS issue. I
think I have to read agin my network lesson ;-)

> Note that all AWS questions are best addressed into the AWS's mailing-list.

I'm sorry, I subscribing right now.

Sebastien
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)

iD8DBQFIRnv++zV9xm4PlDQRAmRbAJ9yomeIYz+Yn/ZZhDvGt3vAL29VSwCfQNS5
4/tpoCbigzRpDGFwQIw+kgE=
=qly2
-----END PGP SIGNATURE-----



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: AWS and deconnection
  2008-06-04 11:26   ` Sébastien Morand
@ 2008-06-04 12:00     ` Pascal Obry
  0 siblings, 0 replies; 6+ messages in thread
From: Pascal Obry @ 2008-06-04 12:00 UTC (permalink / raw)
  To: Sébastien Morand

S�bastien Morand a �crit :
> Thanks, I know where it comes from, but I thought it could have a way
> from the server to close properly the connection whithout caring what
> the client is doing, but there is not, and it's clearly an OS issue. I
> think I have to read agin my network lesson ;-)

Hum not sure we understand each other. I mean from the server side you 
can set into your .ini file (look into the AWS documentation how to use 
one):

    reuse_address true

Pascal.

-- 

--|------------------------------------------------------
--| Pascal Obry                           Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--|              http://www.obry.net
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-06-04 12:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-04  9:29 AWS and deconnection Sébastien Morand
2008-06-04 10:37 ` Pascal Obry
2008-06-04 11:26   ` Sébastien Morand
2008-06-04 12:00     ` Pascal Obry
  -- strict thread matches above, loose matches on Subject: below --
2008-06-04  9:31 Sébastien Morand
2008-06-04  9:48 ` Stefan Naewe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox