Displaying 1 result from an estimated 1 matches for "preeceded".
Did you mean:
preceded
2005 Feb 17
1
socket problems (maybe bugs?)
...="big") # second read leads to
# segmentation fault
If i omit the endian="big" option, the second read does not crash, but
just gets 10 random numbers.
On the first view, this does not seem to be a problem, since the
data will be preeceded by a header, which contains the number of
bytes in the binary block.
However, due to race conditions, i cannot exclude this situation:
time server client
t0 sends header
t1 reads header
t2 tries to read binary, crashes
t3 sen...