Re: AF_UNIX MSG_PEEK bug?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Rick Jones
Date: Tuesday, January 8, 2008 - 3:40 pm

Potential bugs notwithstanding, given that this is a STREAM socket, and 
as such shouldn't (I hope, or I'm eating toes for dinner again) have 
side effects like tossing the rest of a datagram, why are you using 
MSG_PEEK?  Why not simply read the N bytes of the message that will have 
the message length with a normal read/recv, and then read that many 
bytes in the next call?

rick jones
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
AF_UNIX MSG_PEEK bug?, Brent Casavant, (Tue Jan 8, 3:27 pm)
Re: AF_UNIX MSG_PEEK bug?, Rick Jones, (Tue Jan 8, 3:40 pm)
Re: AF_UNIX MSG_PEEK bug?, Tom Spink, (Tue Jan 8, 3:53 pm)
Re: AF_UNIX MSG_PEEK bug?, Brent Casavant, (Tue Jan 8, 4:18 pm)
Re: AF_UNIX MSG_PEEK bug?, Brent Casavant, (Tue Jan 8, 4:20 pm)
Re: AF_UNIX MSG_PEEK bug?, Tom Spink, (Tue Jan 8, 4:39 pm)
Re: AF_UNIX MSG_PEEK bug?, Tom Spink, (Tue Jan 8, 4:46 pm)
Re: AF_UNIX MSG_PEEK bug?, Brent Casavant, (Tue Jan 8, 5:08 pm)
Re: AF_UNIX MSG_PEEK bug?, Tetsuo Handa, (Wed Jan 9, 4:04 am)
Re: AF_UNIX MSG_PEEK bug?, Herbert Xu, (Wed Jan 9, 5:01 pm)
Re: AF_UNIX MSG_PEEK bug?, Brent Casavant, (Wed Jan 9, 6:19 pm)
Re: AF_UNIX MSG_PEEK bug?, Brent Casavant, (Wed Jan 9, 7:50 pm)
Re: AF_UNIX MSG_PEEK bug?, Brent Casavant, (Thu Jan 10, 3:35 pm)
Re: AF_UNIX MSG_PEEK bug?, Alan Cox, (Thu Jan 10, 3:36 pm)