Jul's Page (Hungarian) » Packages » ucspi-tcp

What is ucspi-tcp?

ucspi-tcp is the TCP part of Unix Client-Server Protocol Interface by Daniel J. Bernstein.

ucspi-tcp patches

ucspi-tcp-0.88-periplimit.7.patch adds connection limiting on per IP address basis.

Many thanks to Oliver Hitz ([OH]), wangjin ([W]), Myhan ([SRNI]) and James H. Thompson ([JHT]) to help me debugging the old code. Fixes are (in version order):

  • 7: [W] caught another bug after malloc-ing children array: it should be zeroed before use.
  • 6: I can't belive it! [OH] caught another bug which prevents SIGCHLD handler from clean up after more than one connection. The latest patch keeps low your connection counter.
  • 5: What a bugfest! [OH] caught a bug which confuses connection table and cannot decrease per-IP connection number on close sometimes.
  • 4: When no matched IP address is found in the table, the last one will be overwritten [OH]
  • 4: added log feature to dropped connections [OH].
  • 4: When an empty slot is found in the table, two variables have to be set: an independent, and a dependent one. Of course, dependent is unneccessary and causes confusion only. Helps: [OH], [SRNI]
  • 3: Sometimes allowed more connections from an IP address. [OH]
  • 3: Sometimes per IP limit connection counter could be negative. [OH]
  • 3: tcpserver killed when it got the first connection. [JHT]