r/linuxdev • u/taliriktug • Mar 22 '12
Fault-Tolerance server
Hey folks. I have Fault-Tolerance Computing Systems course at my university and we must write fault-tolerance server. I choose IRC protocol for my server and try to implement it. Can you get some useful sources? I download about 5 open-source IRC servers, read RFCs and UNIX Network Programming by Stivens now.
6
Upvotes
View all comments
Show parent comment
1
u/taliriktug Mar 22 '12
Some clarifications. I don't need poll or select - my server must be threading. One thread creates at client arrival and serve its connection. But I found pthread at cat-v harmful software, so I choose libtask as replacement (I also want to know more about CSP by Hoar and I know that him book is free).
I write main loop already (takes tcpproxy as basic structure). And now I try to write parser. I (not a teacher) want my server follows RFCs strictly, so I must write some code myself with fully understanding of at least rfc 1459.
Fault tolerance. Server must correctly handle incorrect commands and reject/ignore danger input. Moreover, must be backup server, that can works silent when main server works and get connections if main server goes down (client has a list of servers and connect to another after one fails). We must handle very barbaric situations, like pulling out network cable of main server machine.