All HTTP timeouts have been completely disabled for debugging with breakpoints.
builder.Services.AddHttpClient<ChatService>((serviceProvider, client) =>
{
// Force infinite timeout for debugging - no timeouts anywhere
client.Timeout = System.Threading.Timeout.InfiniteTimeSpan;
})public ChatService(HttpClient httpClient, IOptions<WebApiConfiguration> webApiConfig)
{
_httpClient = httpClient;
_apiBaseUrl = webApiConfig.Value.ChatUrl;
// Remove ALL timeouts for debugging with breakpoints
_httpClient.Timeout = System.Threading.Timeout.InfiniteTimeSpan;
Console.WriteLine("🔧 HttpClient timeout: DISABLED (infinite timeout for debugging)");
}// Configure Kestrel with no timeouts for debugging
builder.Services.Configure<Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerOptions>(options =>
{
options.Limits.KeepAliveTimeout = System.Threading.Timeout.InfiniteTimeSpan;
options.Limits.RequestHeadersTimeout = System.Threading.Timeout.InfiniteTimeSpan;
});// Configure Azure OpenAI with NO timeout for debugging
var httpClient = new HttpClient();
httpClient.Timeout = System.Threading.Timeout.InfiniteTimeSpan; // No timeout for debugging with breakpointsWhen running the console app, you should see:
🔧 HttpClient timeout: DISABLED (infinite timeout for debugging)
✅ No 100-second HttpClient timeout
✅ No Kestrel server timeouts
✅ No Azure OpenAI API timeouts
✅ Can set breakpoints anywhere without timeout errors
✅ Can debug step-by-step through Semantic Kernel processes
✅ Can pause execution indefinitely during debugging
- Client timeouts: 30-300 seconds depending on use case
- Server timeouts: 30-60 seconds for request headers/keep-alive
- Azure OpenAI timeouts: 120-300 seconds for LLM calls
To quickly restore timeouts, change:
// Development (no timeouts)
client.Timeout = System.Threading.Timeout.InfiniteTimeSpan;
// Production (with timeouts)
client.Timeout = TimeSpan.FromSeconds(300); // 5 minutes