Netty IdleStateHandler times out for large messages

Thomas

I'm using Netty's IdleStateHandler in my client/server communication to send heartbeats (server to client) and detect timeouts on the client. This works fine expect for rare cases when the transfer of large messages takes longer than the configured read timeout. I my case these large messages only happen at the client's startup (baseline), during normal operation the messages are small, hence I'm reluctant to increase the overall read timeout on the client.

Is there a way for prevent the IdleStateHandler from firing idle state events while it's actually receiving data? Or am I doing something wrong?

Thanks, Thomas

Thomas

Add the IdleStateHandler as first handler to the 'ChannelPipeline' solved my problem. This ensures the timestamp of the last received data is updated as often as possible.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Netty IdleStateHandler times out for large messages

From Dev

FileZilla times out when transferring large file

From Dev

Is it possible that the messages client received is out of order as the netty server write

From Dev

Netty 4 - What is the expectation and strategy for connecting out and queuing messages

From Dev

Uploading large files to proftpd through paramiko times out

From Dev

PHP MySQL times out when updating large db

From Dev

Couchdb view on large documents with strings as keys times out

From Dev

Netty concatenates messages that arrive simultaneously

From Dev

Netty NIO: Read received messages

From Dev

Netty TCP Client async messages

From Dev

Receiving messages from tcp server with Citrus framework and Spring Integration times out

From Dev

Receiving messages from tcp server with Citrus framework and Spring Integration times out

From Dev

My program times out on large Strings, how could I make it faster?

From Dev

Thrift large file in messages

From Dev

Websocket closes with large messages

From Dev

Simple Netty Echo Server/Client not receiving messages

From Dev

Netty Frame Decoder Corrupted on multiple messages

From Dev

Are Netty's WebSocket messages been compressed?

From Dev

Decode messages with variabile length in Netty 4 MessageToMessageDecoder

From Dev

Netty fragmentation for client messages with varying length

From Dev

Large Kafka messages vs small messages + DB

From Dev

Netty decoder method called multiple times

From Dev

Schema Comparison times out

From Dev

AFHTTPRequestOperation times out

From Dev

sending email times out

From Dev

SSH to OpenShift times out

From Dev

DELETE command times out

From Dev

select statement times out

From Dev

WiFi authentication times out

Related Related

  1. 1

    Netty IdleStateHandler times out for large messages

  2. 2

    FileZilla times out when transferring large file

  3. 3

    Is it possible that the messages client received is out of order as the netty server write

  4. 4

    Netty 4 - What is the expectation and strategy for connecting out and queuing messages

  5. 5

    Uploading large files to proftpd through paramiko times out

  6. 6

    PHP MySQL times out when updating large db

  7. 7

    Couchdb view on large documents with strings as keys times out

  8. 8

    Netty concatenates messages that arrive simultaneously

  9. 9

    Netty NIO: Read received messages

  10. 10

    Netty TCP Client async messages

  11. 11

    Receiving messages from tcp server with Citrus framework and Spring Integration times out

  12. 12

    Receiving messages from tcp server with Citrus framework and Spring Integration times out

  13. 13

    My program times out on large Strings, how could I make it faster?

  14. 14

    Thrift large file in messages

  15. 15

    Websocket closes with large messages

  16. 16

    Simple Netty Echo Server/Client not receiving messages

  17. 17

    Netty Frame Decoder Corrupted on multiple messages

  18. 18

    Are Netty's WebSocket messages been compressed?

  19. 19

    Decode messages with variabile length in Netty 4 MessageToMessageDecoder

  20. 20

    Netty fragmentation for client messages with varying length

  21. 21

    Large Kafka messages vs small messages + DB

  22. 22

    Netty decoder method called multiple times

  23. 23

    Schema Comparison times out

  24. 24

    AFHTTPRequestOperation times out

  25. 25

    sending email times out

  26. 26

    SSH to OpenShift times out

  27. 27

    DELETE command times out

  28. 28

    select statement times out

  29. 29

    WiFi authentication times out

HotTag

Archive