Saturday, January 23, 2010

Remote ssh connections, No buffer space

While testing the wonderful UDT, I had the following problems on Mac OS X:

#1

ssh connection being denied (even if Preferences > Share > Remote Login was enabled).

It appears that the UI configuration tool is broken and doesn't allow sshd-key-agent.

Change Preferences > Security radio button to Allow some connection. You should then be prompted for sshd-key-agent.

#2

While starting the client app that creates rather large buffer and UDP packet, I got the following:

$ ./appclient 192.168.0.195 9000
connect: Connection setup failure: unable to create/configure UDP socket: No buffer space available.

This can be solved with:

$ sudo sysctl -w kern.ipc.maxsockbuf=80000000
kern.ipc.maxsockbuf: 8388608 -> 80000000

1 comment:

Anonymous said...

hi, have you ever tried to use UDT in iPhone ?
I tried and got compiled, however, when I ran it, I got these exceptions, one of them is what you got:

Detected an attempt to call a symbol in system libraries that is not present on the iPhone:
_Unwind_Resume called from function _ZN8CChannel4openEPK8sockaddr in image UDTFileTest.

connect: Connection setup failure: unable to create/configure UDP socket: No buffer space available.

I tried to go to code to modify the buffer size, but can't find anything that works, would you be able to help this buffer size issue?

I would appreciate your help.