It is not guaranteed that recv will always return the number of bytes you have 
asked for; it can return fewer bytes which should not be treated as an error. 
This is a rare issue but I have actually encountered it on a (virtualised) 
system. Review requested though - unsure if I have the logic watertight.
You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/mod_tile/pull/469

-- Commit Summary --

  * ensure that partial reads from recv don't trip up rendering

-- File Changes --

    M src/mod_tile.c (58)

-- Patch Links --

https://github.com/openstreetmap/mod_tile/pull/469.patch
https://github.com/openstreetmap/mod_tile/pull/469.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/mod_tile/pull/469
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/mod_tile/pull/[email protected]>
_______________________________________________
Tile-serving mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/tile-serving

Reply via email to