Преглед изворни кода

evapi: increased the static buffer size used for reading evapi responses

- 32k instead of 4k
Daniel-Constantin Mierla пре 10 година
родитељ
комит
c4fd918826
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      modules/evapi/evapi_dispatch.c

+ 1 - 1
modules/evapi/evapi_dispatch.c

@@ -225,7 +225,7 @@ int evapi_dispatch_notify(char *obuf, int olen)
  */
  */
 void evapi_recv_client(struct ev_loop *loop, struct ev_io *watcher, int revents)
 void evapi_recv_client(struct ev_loop *loop, struct ev_io *watcher, int revents)
 {
 {
-#define CLIENT_BUFFER_SIZE	4096
+#define CLIENT_BUFFER_SIZE	32768
 	char rbuffer[CLIENT_BUFFER_SIZE];
 	char rbuffer[CLIENT_BUFFER_SIZE];
 	ssize_t rlen;
 	ssize_t rlen;
 	int i, k;
 	int i, k;