78 Commits

Author SHA1 Message Date
1152555663 esrf changes: rx_udpsocksize sets/gets udp socket buffer size to be set, rx_realudpsocksize gets the real udp sock size buffer. At receiver config and at rx_udpsocksize command, dummy udp sockets created to know if set udp sock size fails (if fail, set to previous value), and also to get the real udp sock buffer size 2018-05-01 11:55:48 +02:00
99281e2690 esrf changes: previous commit compile 2018-04-26 16:43:07 +02:00
173d8f740e esrf changes: slsReceiver: better checking of socket buffer pars. and warn on failures
* not done. The 'setsockopt(SO_RECVBUF)' system call cannot set the socket buffer
  size lager than the specified in net.core.rmem_max. The requested value
  was 2 GB (commit 3b0e2e6), which is far too large for this application,
  so it was restored to the acceptable 100 MB value.

* The syscall does not fail if the requested buffer size is larger than
  net.core.rmem_max. Use 'setsockopt(SO_RECVBUFFORCE)' to actually force a
  value larger than the system limit, which can be done if run in a
  privileged context (capability CAP_NET_ADMIN set).

* The real value is read with 'getsockopt(SO_RECVBUF)'. If it
  corresponds to twice the requested value (see 'man 7 socket'), it is
  printed in green, otherwise it is signalled in red.

* The 'setsockopt(SO_RECVBUFFORCE)' syscall removes the need to write to
  /proc/sys/net/core/rmem_max, so this was was suppressed in the
  'UDPStandardImplementation' constructor.

* The test on EIGER detectors before setting the system
  buffers was removed. Was there for 9m/2m eiger, but one can take care of
  memory requirements using a customizable max socket buffer size(only with
  permissions). to be implmented later.

* The file /proc/sys/net/core/netdev_max_backlog is first read by the
  receiver to check is the current value is OK. If it is not, the receiver
  directly writes the good value into the file (instead of delegating to
  the system shell), printing a red error message if there is an access
  error (non-privileged user).
2018-04-26 15:22:44 +02:00
Dhanya Maliakal
a351fa8f28 switching from black to white background for receiver 2017-11-28 11:18:30 +01:00
Dhanya Maliakal
823d537825 fixed warnings 2017-11-17 09:26:20 +01:00
Dhanya Maliakal
32d32dbcdc in between separating datastreaming in client and receiver 2017-11-15 16:16:59 +01:00
Dhanya Maliakal
53caebe0f3 replaced gethostbyname with getaddrinfo as it is not thread safe 2017-11-10 16:30:48 +01:00
Dhanya Maliakal
9255cdde8a bug fixx for the 9m gethostbyname being not thread safe 2017-11-09 13:42:57 +01:00
Dhanya Maliakal
39847c5db6 esrf bug, shut down socket, but being processed and object deleted, fixed 2017-08-09 17:25:23 +02:00
Dhanya Maliakal
b03e35a8d6 sorted receiver client interface, more consistent 2017-07-03 13:31:17 +02:00
Dhanya Maliakal
a4c07ba9a0 added black background for reciever to see gray font better 2017-06-30 12:19:27 +02:00
Dhanya Maliakal
bd363b2c93 jungfrau finally works with new header 2017-05-15 17:02:37 +02:00
Dhanya Maliakal
f53770a2fc some changes to remove possible warnings 2017-05-11 14:41:07 +02:00
Dhanya Maliakal
a1fc93b398 changes including warnings and zmq 2017-05-04 17:52:58 +02:00
Dhanya Maliakal
49b4ae2f56 changed zmq method, and resolved warnings and from esrf 2017-05-03 17:57:56 +02:00
Dhanya Maliakal
447c5bb8fe gui works 2017-02-28 13:42:56 +01:00
Dhanya Maliakal
3b07afe3fc in the process of streamer 2017-02-27 15:38:46 +01:00
Dhanya Maliakal
936dfea8a7 works so far, no gui yet 2017-02-22 12:01:00 +01:00
Dhanya Maliakal
b260d08225 somewhere 2017-02-10 10:08:00 +01:00
Dhanya Maliakal
c89f6e649c fnum wrong, need to add file features 2017-02-07 08:52:27 +01:00
Dhanya Maliakal
af8c750b5a made the eiger like the jungfrau ignoring packets 2016-11-25 12:22:21 +01:00
Dhanya Maliakal
2677fe3729 debugging progress and resettting serveraddress at start 2016-11-08 14:42:16 +01:00
Dhanya Maliakal
f7654f8c94 debugging 2016-11-08 11:35:00 +01:00
Dhanya Maliakal
76435c5981 debugging 2016-11-08 11:27:49 +01:00
Dhanya Maliakal
9effdab69b debugging 2016-11-08 09:29:42 +01:00
Dhanya Maliakal
cbd077e984 debugging 2016-11-08 09:28:05 +01:00
Dhanya Maliakal
01db6b988b debugging 2016-11-08 09:22:18 +01:00
Dhanya Maliakal
a5c4434ae8 debugging 2016-11-08 09:18:32 +01:00
Dhanya Maliakal
8fd1b9b617 debugging 2016-11-08 09:08:09 +01:00
Dhanya Maliakal
c6dbeda8b7 debugging 2016-11-08 09:03:07 +01:00
Dhanya Maliakal
9069e2eba4 Merge branch 'developer' into jungfrautomerge 2016-11-02 14:33:03 +01:00
Dhanya Maliakal
b9ac75330c removed all prints in generic 2016-11-01 16:36:32 +01:00
Dhanya Maliakal
8bb0249d5b reverted timeouts 2016-11-01 13:09:16 +01:00
Dhanya Maliakal
19caeb3e38 something 2016-11-01 12:06:08 +01:00
Dhanya Maliakal
0c257dbcdd something 2016-11-01 12:04:08 +01:00
Dhanya Maliakal
d6e78c19ad changing send, rc timeout 2016-11-01 11:09:28 +01:00
Dhanya Maliakal
59ade286c2 trying 2016-10-31 16:04:46 +01:00
Dhanya Maliakal
13d225377d trying 2016-10-31 15:33:35 +01:00
Dhanya Maliakal
21ccb211c1 trying 2016-10-31 15:29:40 +01:00
Dhanya Maliakal
cc11ff29bf trying 2016-10-31 15:22:27 +01:00
Dhanya Maliakal
f81ede500d trying 2016-10-31 15:06:38 +01:00
Dhanya Maliakal
bd74a25072 trying 2016-10-31 14:53:58 +01:00
Dhanya Maliakal
351d911f46 trying 2016-10-31 14:45:19 +01:00
Dhanya Maliakal
e030a79aba trying 2016-10-31 14:36:13 +01:00
Dhanya Maliakal
6a843b28d1 trying 2016-10-31 14:30:48 +01:00
Dhanya Maliakal
cc2346be67 trying 2016-10-31 14:28:15 +01:00
Dhanya Maliakal
e3455fe1ff trying 2016-10-31 14:24:23 +01:00
Dhanya Maliakal
873d536729 trying 2016-10-31 14:13:00 +01:00
Dhanya Maliakal
eb68a69e38 merged with developer 2016-10-28 08:18:01 +02:00
Dhanya Maliakal
434fa863d0 shutdown bug 2016-10-27 09:48:04 +02:00