In ReadResponse function of SmtpProxy class the LoopTimeout variable is defined and valorized within the do / while loop...but at each iteraction is value is resetted!
do
{
int LoopTimeout = 0;
Shouldn't it be declared and initialized outside the loop? Otherwise, you never get the time-out....
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I think I introduced that while copying-and-pasting a change for multiline responses. However, that code should really be using the timeout setting that's already available (100ms is too short). I'll look at that this weekend if humanly possible.
Thanks,
-Mike
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
In ReadResponse function of SmtpProxy class the LoopTimeout variable is defined and valorized within the do / while loop...but at each iteraction is value is resetted!
do
{
int LoopTimeout = 0;
Shouldn't it be declared and initialized outside the loop? Otherwise, you never get the time-out....
Hi-
I think I introduced that while copying-and-pasting a change for multiline responses. However, that code should really be using the timeout setting that's already available (100ms is too short). I'll look at that this weekend if humanly possible.
Thanks,
-Mike