Re: How to release socket connection on Proxy object

Pierre PACORY <[email protected]>
Newsgroups gmane.comp.python.pyro
Message-ID <CAKq=qT9x6BT_Vp8hTaa0jYuLE0mr2czhr8NY7hKLVRQ_JqehrQ@mail.gmail.com>
I found a solution on linux (for windows don't know ...)
just edit thoses 2 "proc" files and add "1"

*echo 1 > /proc/sys/net/ipv4/tcp_tw_recycle*   (It enables fast recycling
of TIME_WAIT sockets)
*echo 1 > /proc/sys/net/ipv4/tcp_tw_reuse*  (This allows reusing sockets in
TIME_WAIT state for new connections when it is safe from protocol viewpoint)

The socket close immediatlly after the return of the Proxy object Method

Hope that could help



2013/1/3 Pierre PACORY <[email protected]>

>
> Hi,
>
> After launch the Pyro Daemon loop and create proxy objects
> i create a client to connect to those proxy objects and call
> method on it.
> My server Pyro 127.0.0.1:8888 client on the same host
> As i see in a netstat my client open socket to 127.0.0.1:8888
>
> ...
> tcp        0      0 127.0.0.1:42768         127.0.0.1:8888
> TIME_WAIT
> tcp        0      0 127.0.0.1:43399         127.0.0.1:8888
> TIME_WAIT
> tcp        0      0 127.0.0.1:45861         127.0.0.1:8888
> TIME_WAIT
> tcp        0      0 127.0.0.1:41112         127.0.0.1:8888
> TIME_WAIT
> ...
>
> All's working i've got the result of my method on the object but
> the socket doesn't close directly after ??? only 10 or 20 seconds after
> i try timeout in config Pyro but nothing change.
>
>
> Is there a way to close the connection after getting the result of the
> method on the
> proxy object ???
>
> thks
> P.PACORY
>
>
>

------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122912

_______________________________________________
Pyro-core mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyro-core
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.