JARDIN_DEFAULT_RECV_BUFFER_SIZE is too big
Bug #494242 reported by
Aleksander Morgado
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
El Jardin |
Fix Released
|
Low
|
Terry |
Bug Description
JARDIN_
Changed in eljardin: | |
importance: | Undecided → Low |
status: | New → Confirmed |
Changed in eljardin: | |
assignee: | nobody → Terry (cellterry) |
status: | Confirmed → Fix Committed |
Changed in eljardin: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Two new API methods are needed:
jardin_status_t server_ set_default_ buffer_ size(jardin_ server_ t server, gssize buffer_size);
jardin_
jardin_status_t client_ set_default_ buffer_ size(jardin_ client_ t client, gssize buffer_size);
jardin_
Those functions will internally set the buffer size to be used, instead of the default 65k. Given size should be in BYTES. If that function is not called, default buffer size of 65k should be used. Those functions should be called just after creation of the Jardin Server or Client.
Additional tests are needed to check that long stream of bytes are properly sent/received even if using small buffer sizes.