<!-- XE-13275 · [net/msg.go] L4: requestTimeout terlalu lama (15 detik) — blocking resource untuk request yang sering · testnet -->
*Markdown view of <https://bounty.xe.network/XE-13275>. The page is the record; this is the same page for reading.*

XE-13275 · Bounty

# \[net/msg.go\] L4: requestTimeout terlalu lama (15 detik) — blocking resource untuk request yang sering

Closed · invalid
—
[xe#420](https://github.com/xeprotocol/xe/issues/420)
filed 2026-11-12 02:48 UTC
by wahyu20260100233-ops

Verdict
:   Invalid

Tier
:   —

Claimed
:   —

Area
:   P2P / sync

Duplicate of
:   —

Tracked
:   —

Updated
:   2026-11-20 00:51 UTC

Told
:   2026-11-20 00:49 UTC

### Patches

None linked.

### History

- [557372](https://bounty.xe.network/log/557372) 2026-11-20 00:49 UTC reply.mirrored
- [557069](https://bounty.xe.network/log/557069) 2026-11-20 00:48 UTC reply.sent
- [554772](https://bounty.xe.network/log/554772) 2026-11-20 00:37 UTC github.state\_pushed
- [554759](https://bounty.xe.network/log/554759) 2026-11-20 00:37 UTC github.labels
- [553338](https://bounty.xe.network/log/553338) 2026-11-20 00:33 UTC proposal.adopted
- [553137](https://bounty.xe.network/log/553137) 2026-11-20 00:33 UTC proposal.adopted
- [553136](https://bounty.xe.network/log/553136) 2026-11-20 00:33 UTC ticket.status new → closed
- [552621](https://bounty.xe.network/log/552621) 2026-11-20 00:33 UTC proposal.adopted
- [552620](https://bounty.xe.network/log/552620) 2026-11-20 00:33 UTC ticket.facts area
- [552616](https://bounty.xe.network/log/552616) 2026-11-20 00:33 UTC proposal.adopted
- [552615](https://bounty.xe.network/log/552615) 2026-11-20 00:33 UTC ticket.facts
- [551031](https://bounty.xe.network/log/551031) 2026-11-20 00:31 UTC note.added

[Full history](https://bounty.xe.network/log?ref=XE-13275) · [JSON](https://bounty.xe.network/v1/tickets/XE-13275) · [markdown](https://bounty.xe.network/XE-13275.md)

### Report

## Ringkasan

Default `requestTimeout = 15 * time.Second`. Untuk request yang sering (misal sync), 15 detik bisa terlalu lama dan menyebabkan resource menumpuk.

## Lokasi

- File: `net/msg.go`
- Lines: 25-26, 76-78

## Kode

```
const (
    requestTimeout = 15 * time.Second
    maxConcurrent  = 50
)
```

## Impact

Request yang lambat bisa menahan resource (goroutine, connection) selama 15 detik. Kalau banyak request concurrent, bisa menyebabkan resource exhaustion.

## Suggested Fix

```
type Messenger struct {
    ...
    requestTimeout time.Duration
}

func NewMessenger(h host.Host, ng *NetworkGater) *Messenger {
    return &Messenger{
        ...
        requestTimeout: 5 * time.Second,  // lebih pendek untuk use case umum
    }
}

// atau tambah Option untuk config
func WithRequestTimeout(d time.Duration) Option {
    return func(m *Messenger) {
        m.requestTimeout = d
    }
}
```

### Thread

**XE desk**team2026-11-20 00:49 UTCgithub

Thanks for the report. We read it against the code and could not confirm a bug in what it describes.

This report is closed as invalid. If we have missed something, file a new report that links
https://bounty.xe.network/XE-13275 and says what; it is read like any other.
