projects
/
project
/
ubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b9ed89
)
libubus: fix data type of request sequence counter. fixes hang after ~64K requests
author
Felix Fietkau
<
[email protected]
>
Sat, 15 Dec 2012 15:51:28 +0000
(16:51 +0100)
committer
Felix Fietkau
<
[email protected]
>
Sat, 15 Dec 2012 15:51:28 +0000
(16:51 +0100)
Signed-off-by: Felix Fietkau <
[email protected]
>
libubus.h
patch
|
blob
|
history
diff --git
a/libubus.h
b/libubus.h
index c16495e86b8a99932ed538ef6472682396e8af85..a120eb6d9f419dd99702cd56030af254393a73db 100644
(file)
--- a/
libubus.h
+++ b/
libubus.h
@@
-120,7
+120,7
@@
struct ubus_context {
struct uloop_fd sock;
uint32_t local_id;
- uint
32
_t request_seq;
+ uint
16
_t request_seq;
int stack_depth;
void (*connection_lost)(struct ubus_context *ctx);
@@
-141,7
+141,7
@@
struct ubus_object_data {
struct ubus_request_data {
uint32_t object;
uint32_t peer;
- uint
32
_t seq;
+ uint
16
_t seq;
bool deferred;
};
@@
-156,7
+156,7
@@
struct ubus_request {
bool notify;
uint32_t peer;
- uint
32
_t seq;
+ uint
16
_t seq;
ubus_data_handler_t raw_data_cb;
ubus_data_handler_t data_cb;