Commit Graph

55 Commits

Author SHA1 Message Date
57b7715c2e simplify command 2021-02-04 23:09:47 +03:00
b126094e74 Close connection on __destruct 2021-02-04 23:07:41 +03:00
15296f4b61 amphp 2021-02-04 22:57:46 +03:00
875cb8b542 Mark message methods as internal 2021-02-01 03:08:14 +03:00
b2b444d1ef cs: don't import globals 2021-02-01 02:49:53 +03:00
f6ef057e40 Snappy throw exception if extension not installed 2021-02-01 02:40:00 +03:00
db988a0914 Fix receiving partial message from nsq 2021-02-01 02:38:19 +03:00
b395e1e3ee Fix receiving double heartbeat messages 2021-02-01 01:20:13 +03:00
801fdfe547 Snappy fix receiving partial message 2021-02-01 01:17:39 +03:00
3d8f5be2d0 Snappy 2021-02-01 00:39:07 +03:00
070b980003 Use Buffer in Producer::mpub 2021-01-31 18:11:37 +03:00
a66f622cf6 Expect heartbeat in checkIsOk 2021-01-31 18:11:24 +03:00
72dca5c73b Wrap Socket 2021-01-31 17:26:07 +03:00
e3485416a5 Move try/catch from readFrame to read 2021-01-30 18:40:34 +03:00
930314f1ac Convert comments to phpdoc 2021-01-30 18:26:31 +03:00
e1cca2d3eb Remove Subscriber 2021-01-30 18:22:34 +03:00
1a24efacfb NSQ Connection can subscribe only for one topic 2021-01-30 18:13:50 +03:00
a7b847146a Prevent recreate ByteBuffer objects 2021-01-30 18:05:36 +03:00
f74b82a400 Explode Response to Frames 2021-01-30 17:40:17 +03:00
d92f3911d5 Drop connection config on disconnect 2021-01-27 00:24:18 +03:00
c94f2df32e Fix snappy in ClientConfig serialize 2021-01-27 00:05:02 +03:00
ad4517d4ae Log reconnect attempt as warning 2021-01-27 00:03:45 +03:00
d4d64df087 Size must be greater then max output buffer 2021-01-26 17:03:21 +03:00
0ba02103ef Restrict disable Feature Negotiation 2021-01-25 03:27:53 +03:00
da4331127b Refactoring: Move delay parameter as last in Producer::dpub 2021-01-25 03:27:04 +03:00
d9bf2a4437 Add ClientConfig and ConnectionConfig, Feature Negotiation and Authentication 2021-01-25 03:19:54 +03:00
551bcfb10b Refactoring: Add typed Connection::command method if favor of send 2021-01-25 01:56:58 +03:00
66b5b77bef Refactoring: remove Connection::sendWithResponse 2021-01-25 01:26:00 +03:00
ebf82cf478 Reconnect 2021-01-24 23:15:07 +03:00
f0b8ad1373 Ignore Coverage in ConnectionFail 2021-01-24 23:15:07 +03:00
caa1bab9b5 Add more specific exceptions 2021-01-24 23:15:07 +03:00
92e8ca0812 Use LoggerAwareTrait 2021-01-24 23:15:07 +03:00
b6ce107ed1 Heartbeat can receive Producer too 2021-01-24 01:21:35 +03:00
658949519d Sampling 2021-01-24 01:21:35 +03:00
d0594c601c Add MessageTest 2021-01-23 03:39:35 +03:00
33b1ee129b Mark consumer as final 2021-01-23 03:24:39 +03:00
54d9374478 sendWithResponse 2021-01-23 03:21:09 +03:00
5d407480db Add SubscriberTest 2021-01-23 02:59:41 +03:00
6e37bbd1ae Prevent send RDY every iteration 2021-01-23 02:29:36 +03:00
9f95dff2ec Allow configure heartbeat_interval 2021-01-23 02:16:29 +03:00
e821f04ebe Try to resolve hostname if no configured 2021-01-23 02:16:05 +03:00
df89322fe0 Drop php 7.4 2021-01-23 02:15:12 +03:00
33e96e6bdc Escape newline chars 2021-01-23 02:12:41 +03:00
6eeb2939c8 Rename Reader to Consumer and Writer to Producer 2021-01-23 01:35:09 +03:00
18ecca3c40 Merge Envelope with Message 2021-01-23 01:30:29 +03:00
7873a9f010 Receive Reader as dependency in Subscriber instead of extending it 2021-01-23 01:24:35 +03:00
fbe24eb6c4 Add Response object 2021-01-23 01:14:57 +03:00
8046eae846 Remove Config class 2021-01-23 00:37:48 +03:00
c7617cbf6e Add logger 2021-01-23 00:36:45 +03:00
eaab94286d Send client_id, hostname and user_agent to NSQ on connect 2021-01-23 00:34:15 +03:00