Max buffer size for event API

#1

I am trying to receive all events and it seems that it overflow the buffer. What should be the maximum buffer size used in receiving the event data? Thanks,

0 Likes

(Audrius Butkevicius) #2

You can only get the last 1000 events from syncthing, events older than that roll off.

0 Likes

#3

It is not only the number of events, What I found from the returned event json text sometimes is not a complete json block — it was truncated and only part of the json block showed in the string.

0 Likes

(Audrius Butkevicius) #4

You’re doing something wrong. We store events as event objects, not JSON, so it cannot be truncated unless the connection or syncthing gets abruptly terminated, or your buffer you receive the response into is too small.

0 Likes