[CalendarServer-users] calendarserver 3.2 on Debian unstable throwing error "socket.error: [Errno 22] Invalid argument" out of the box?

Chris Cleeland chris.cleeland at gmail.com
Wed Jul 18 08:05:28 PDT 2012


On Tue, Jul 17, 2012 at 6:59 PM, Glyph <glyph at twistedmatrix.com> wrote:

>
> On Jul 17, 2012, at 1:04 AM, Fredrik Unger <fred at tree.se> wrote:
>
> One problem could be socklen_t. Linux uses size_t [1].
>
>
> The compiler should know, at this point in the code, that msg_controllen
> is a size_t, which is to say, uint64, and ((socklen_t) all_data_len) is a
> socklen_t, which is to say, int32.  So the cast is valid.  (Doing funky
> stuff with & might not be, depending on the type specifiers in question.)
>

Wasn't the code originally discussed written in python, though, and used
"pack" to synthesize a struct?  If that's the case, then the pack spec
would be assuming a specific layout and type size.  It probably is correct
in the 32 bit case, but not in the 64 bit case.

-- 
Chris Cleeland
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-users/attachments/20120718/9cac551b/attachment.html>


More information about the calendarserver-users mailing list