---
"@context": https://schema.org
"@type": TechArticle
"@id": https://www.twilio.com/docs/api/errors/51128#article
headline: "51128: Twilsock: Too many messages per connection"
url: https://www.twilio.com/docs/api/errors/51128
inLanguage: en
dateModified: 2026-06-09T11:00:42.000Z
author:
  "@type": Organization
  name: Twilio Developer Education Team
publisher:
  "@type": Organization
  name: Twilio
---

# 51128: Twilsock: Too many messages per connection

Log Level: ERROR

## Description

Twilsock rejected traffic on a single connection because your application sent more messages than the connection limit allows. This usually means the client is sending requests too quickly, retrying too aggressively, or creating an unexpected amount of real-time traffic over one Twilsock session.

### Possible causes

* Your client is sending a burst of messages over one Twilsock connection that exceeds the allowed rate or volume.
* Your application has a retry loop or reconnect loop that resends the same requests repeatedly.
* Multiple features in your application are sharing one connection and generating more traffic than expected.
* A client-side bug is causing duplicate operations, duplicate event publishing, or repeated subscription updates.
* Your application workload has grown beyond the default limits configured for your account or use case.

### Possible solutions

* Review your client logic and confirm that it does not send duplicate requests, repeated updates, or unnecessary retries over the same connection.
* Add throttling or backoff in the client so traffic is spread more evenly instead of being sent in large bursts.
* Check reconnect and retry behavior to make sure the client does not immediately replay queued messages in a tight loop.
* Reduce unnecessary real-time operations such as repeated subscriptions, updates, or polling behavior that can increase Twilsock traffic.
* If the traffic is expected for your use case, contact Support to discuss whether your account limits need to be reviewed.

#### Additional resources

* [Conversations documentation](/docs/conversations)
* [Sync documentation](/docs/sync)
