Skip to content

Consumer : Receive file with bytes form producer sometimes not complete #92

@DG-Wangtao

Description

@DG-Wangtao

Hi, Sorry to trouble.
When I use the consumer to receive a file which is about size of 3300 KB, sometimes I just get a part of it.
My file is sended in bytes with string like this "eNrsvHd0E9f67y2DAcuUgLEt2ZZkW5qRZFszkmxTb...." and I convert it to byte[] and then write to a local #file.
Is there some something wrong with my config?
Hope get your help.

NsqSharp.Config config = new Config() {
DialTimeout = new TimeSpan(0, 0, 3),
WriteTimeout = new TimeSpan(0, 1, 0),
};
cmd.Consumer = new Consumer(cmd.Topic, "channel" + cmd.SessionId, config);

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions