Article delegate-en/4265 of [1-5169] on the server localhost:119
  upper oldest olders older1 this newer1 newers latest
search
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
[Reference:<_A4262@delegate-en.ML_>]
Newsgroups: mail-lists.delegate-en

[DeleGate-En] Re: sockmux over socks proxies
11 Dec 2008 21:08:33 GMT feedback@delegate.org (Yutaka Sato)
The DeleGate Project


Hi,

In message <_A4262@delegate-en.ML_> on 12/12/08(01:40:43)
you Deborah Charan <puyiabdyi-bfkmicgiir3r.ml@ml.delegate.org> wrote:
 |3.  The reason I'm trying this is because my program has issues with too 
 |many open sockets, and SSH's implementation seems to cap each socket 
 |buffer at 80K (or something like that).  How do you do the socket 
 |buffering?

Only a single persistent TCP connection for SockMux between two DeleGate
servers (between hostA and hostB in your case) is used.  Therefore only
a single socket buffer is consumed for this connection.

But there will be a number of parallel connections both between DeleGate
and servers, and between DeleGate and clients, according to the number
of parallel sessions.
As long as I remember, the buffer size of each connection for SOCKS/SockMux
is left to the default value, although it is easy to make it configurable.

The default size of socket buffer varies depending on OS and you can see
it with "delegated -Fver".   The following list is the result of -Fver
on machines I have.  For example, it is 8K+8K for input/output
(SO_RCVBUF/SO_SNDBUF) on Windows, and about 85K+16K on Linux.  I don't
know whether these buffer is allocated statically or dynamically.

  Config: WindowsNT; socket=8192/8192
  Config: FreeBSD/4.10-RELEASE; socket=57344/32768
  Config: FreeBSD/5.3-RELEASE; socket=65536/32768
  Config: FreeBSD/6.1-RELEASE; socket=65536/32768
  Config: Linux/2.4.2-2; socket=87380/16384
  Config: Linux/2.4.17_mvl21; socket=87380/16384
  Config: Linux/2.4.20-8; socket=87380/16384
  Config: Linux/2.4.27-2-386; socket=87380/16384
  Config: Linux/2.6.16-0vl60; socket=87380/16384
  Config: Linux/2.6.18-1.2798.fc6; socket=87380/16384
  Config: Linux/2.6.24-18-generic; socket=87380/16384
  Config: Linux/2.6.25.5-1.1-pae; socket=87380/16384
  Config: SunOS/5.10; socket=49152/49152
  Config: Darwin/8.11.0; socket=65535/65535
  Config: Darwin/8.11.1; socket=65535/65535
  Config: Darwin/9.4.0; socket=260000/00000X

 |Are there a maximum number of connections over the tunnel?  
 |Do you use SSH?

The maximum number of parallel connections is 64 as defined as NSOCK in
src/sox.c.  I'm using SSH over SockMux but not so intensively.
By the way,
  > Subject: Re: sockmux over socks proxies
You are asking about SOCKS over SockMux :)

Cheers,
Yutaka
--
  9 9   Yutaka Sato <y.sato@delegate.org> http://delegate.org/y.sato/
 ( ~ )  National Institute of Advanced Industrial Science and Technology
_<   >_ 1-1-4 Umezono, Tsukuba, Ibaraki, 305-8568 Japan
Do the more with the less -- B. Fuller

  admin search upper oldest olders older1 this newer1 newers latest
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
@_@V