Re: [Pharo-users] StampClient produce only and dealing with heartbeat

2016-05-20 Thread Henrik Sperre Johansen
+1. Testing the RabbitMQ client (very cool, BTW) some time ago (which is structured the same way with a single event loop), I ran into the same kind of issues Holger describes; for example, bursts of incoming data would cause a heartbeat to not be sent in time, and the server would drop connections

Re: [Pharo-users] StampClient produce only and dealing with heartbeat

2016-05-20 Thread Holger Freyther
> On 19 May 2016, at 10:40, Sven Van Caekenberghe wrote: > > Hi Holger, Dear Sven, > However, you need a regular opportunity to send something out. Thinking out > loud, what about something like > > StampClient>>#runWith: receiveBlock do: sendBlock > > where receiveBlock is like it is now,

Re: [Pharo-users] StampClient produce only and dealing with heartbeat

2016-05-19 Thread Sven Van Caekenberghe
Hi Holger, Thanks for using Stamp, your feedback and off-list improvements. This is really important. Here are some general answers to the questions you asked. First: I have not yet used a producer only scenario, in a real system. Your questions are very valid, basically you/we have to figure

[Pharo-users] StampClient produce only and dealing with heartbeat

2016-05-18 Thread Holger Freyther
Dear Sven, I started to use the StampClient and intend to use it to produce data but for heartbeat and other parts I need to read from the socket as well. I wonder about the best strategy to deal with it. The naive approach. [ | event sendFrame | event := sharedQueue next. sendFrame