File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
crates/hyperion-proxy/src Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -138,8 +138,9 @@ impl PlayerHandle {
138
138
Ok ( true ) => Ok ( ( ) ) ,
139
139
140
140
Ok ( false ) => {
141
+ let is_full = self . writer . is_full ( ) ;
141
142
self . shutdown ( ) ;
142
- bail ! ( "failed to send packet to player, channel is full" ) ;
143
+ bail ! ( "failed to send packet to player, channel is full: {is_full} " ) ;
143
144
}
144
145
Err ( e) => {
145
146
self . writer . close ( ) ;
Original file line number Diff line number Diff line change @@ -124,12 +124,17 @@ pub fn initiate_player_connection(
124
124
if outgoing_packet. is_shutdown ( ) {
125
125
return ;
126
126
}
127
-
127
+
128
128
if outgoing_packet. is_flush ( ) {
129
+ let time_start = std:: time:: Instant :: now ( ) ;
129
130
if let Err ( e) = packet_writer. flush_pending_packets ( ) . await {
130
131
warn ! ( "Error flushing packets to player: {e:?}" ) ;
131
132
return ;
132
133
}
134
+ let duration = time_start. elapsed ( ) ;
135
+ if duration > std:: time:: Duration :: from_millis ( 50 ) {
136
+ warn ! ( "flushed packets to player in {duration:?}" ) ;
137
+ }
133
138
} else {
134
139
packet_writer. enqueue_packet ( outgoing_packet) ;
135
140
}
You can’t perform that action at this time.
0 commit comments