QChris has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/155787

Change subject: Increase collector's read buffer
......................................................................

Increase collector's read buffer

Seeing that the increase of the socket's receive buffer did not help,
we increase the buffer that is used for reading from the
socket. Stabbing in the dark :-)

Change-Id: I2b44f0856d0a455bc108297732e06c0b160fe397
---
M collector.c
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/analytics/webstatscollector 
refs/changes/87/155787/1

diff --git a/collector.c b/collector.c
index b97ba5a..a65ba53 100644
--- a/collector.c
+++ b/collector.c
@@ -46,7 +46,7 @@
 int main(int ac, char **av) {
 
        ssize_t l;
-       char buf[2000];
+       char buf[200000];
        int r;
 
 
@@ -105,7 +105,7 @@
                
                /* Process incoming UDP queue */
                while(( fds[0].revents & POLLIN ) && 
-                       ((l=recvfrom(s,&buf,1500,0,NULL,NULL))!=-1)) {
+                       ((l=recvfrom(s,&buf,190000,0,NULL,NULL))!=-1)) {
                                if (l==EAGAIN)
                                        break;
                                handleMessage((char *)&buf,l);

-- 
To view, visit https://gerrit.wikimedia.org/r/155787
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I2b44f0856d0a455bc108297732e06c0b160fe397
Gerrit-PatchSet: 1
Gerrit-Project: analytics/webstatscollector
Gerrit-Branch: kafka
Gerrit-Owner: QChris <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to