Posted Mar 28, 2006 17:32 UTC (Tue) by tjc
Parent article: The Grumpy Editor's guide to RSS aggregators
This is semi-off-topic, but while on the subject of RSS aggregators, does anyone know how to read data from a socket using recv() without it taking forever? If I OR the MSG_WAITALL flag into the fourth argument of recv(), it takes a long time to return, even if the RSS server is running on localhost. If I don't use the flag, I don't get all the data.
Is there any easy way around this, or do I have to keep track of the number of bytes returned and make multiple attempts?
to post comments)