aboutsummaryrefslogtreecommitdiffstats
path: root/core/request_handler.go
AgeCommit message (Collapse)AuthorFilesLines
2018-06-26Pair requests with replies using sequence numbersMilan Lenco1-31/+56
Requests are given sequence numbers (cycling over a finite set of 2^16 integers) that are stored into the lower 16bits of the context. 1bit is also allocated for isMultipart boolean flag and the remaining 15bits are used to store the channel ID. The sequence numbers allow to reliably pair replies with requests, even in scenarious with timeouted requests or ignored (unread) replies. Sequencing is not used with asynchronous messaging as it is implemented by methods of the Channel structure, i.e. above ReqChan and ReplyChan channels. Change-Id: I7ca0e8489c7ffcc388c3cfef6d05c02f9500931c Signed-off-by: Milan Lenco <milan.lenco@pantheon.tech>
2018-05-31Improve handling of probes on timeoutsOndrej Fabry1-3/+19
Change-Id: If94059586d4be739d6c8ae7843cfaf3bc90a5323 Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
2018-04-13Fix missing lock in LookupByIDOndrej Fabry1-0/+3
Change-Id: I699052d179c98ad3a29218fa33fafef0affb97a6 Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
2018-04-05Lookup message name by ID when receiving unexpected messageOndrej Fabry1-3/+24
Change-Id: I693e8084b7e3f036dec5e557dc772857bb7d5f3d Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
2018-03-23Support mocking reply for more multi requests at onceOndrej Fabry1-15/+16
Change-Id: I3610fe1e0c04f4487f6b7139fc62ef4515fad640 Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
2018-03-13Add API to set ControlPing msg and fail connect on unknown IDOndrej Fabry1-5/+3
Change-Id: Idd651a29d9fc3903f52d6fe8945add3052a28b52 Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
2017-11-28Fix imports for github.com/sirupsen/logrusOndrej Fabry1-1/+1
Change-Id: I84f2e45e5ff188a2a7a80cf69f607b44486c1754 Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
2017-09-12Use Sirupsen/logrus with uppercaseLukas Macko1-1/+1
Change-Id: I2f8870c52f64eb56deb44e4a807867b3ef0a0b76 Signed-off-by: Lukas Macko <lmacko@cisco.com>
2017-09-07import sirupsen with lowercaseLukas Macko1-1/+1
Change-Id: I555587fc9ecc074ea1a42f0dc77c11716a1b06cb Signed-off-by: Lukas Macko <lmacko@cisco.com>
2017-07-11added performance benchmark exampleRastislav Szabo1-11/+15
Change-Id: Ia0fea0569be3da7fadac9ef32d5f12c0b6de0089 Signed-off-by: Rastislav Szabo <raszabo@cisco.com>
2017-05-25added async connect API, new structure of examplesRastislav Szabo1-0/+213
Change-Id: Iab9bce174596c30998981e02b7030c248c423384 Signed-off-by: Rastislav Szabo <raszabo@cisco.com>