#777 Popfile hangs when modem dies

open
nobody
None
5
2005-12-05
2005-12-05
No

I'm cursed with a really flaky dialup modem. What
I've observed [with painful regularity] is that if my
modem happens to flake out while I'm downloading
email, Popfile just hangs. it won't do a thing, won't
open its UI and won't respond to either of
the 'shutdowns'... only thing i can do at that point
is kill it from the task manager and restart it [and
then it is fine]. This on XP/Home with the latest
Popfile.

Discussion

  • Bernie Cosell

    Bernie Cosell - 2005-12-05

    Logged In: YES
    user_id=688172

    I forgot to mention, in case it matters: that I'm
    downloading over an APOP connection, not a vanilla POP3
    one...

     
  • Texas Fett

    Texas Fett - 2006-01-07

    Logged In: YES
    user_id=663087

    What mail client are you using? I am also on dailup often
    and had a mail client that would cause the same thing. It
    would never realize the connection was dropped so never let
    go of POPFile. Using other mail clients I didn't have that
    problem.

     
  • David Fishburn

    David Fishburn - 2006-05-31

    Logged In: YES
    user_id=983517

    I think I am seeing this as well.

    I do not use a modem, but I do have a VPN connection to
    work. If the connection flakes, the VPN software
    automatically reconnects, but I have to kill the popfileib
    process and restart Outlook 2003 SP2.

    If I do not restart both items, Outlook still has problems.
    So it is a bit of a joint problem between the 2, but if we
    can tackle this issue on the popfile side I could get closer.

    So yes, when the network flakes, popfile is completely hung
    and must be killed via task manager and restarted.

    I am using 22.4 on WinXP SP2.

     
  • Boris Berdichevski

    Logged In: YES
    user_id=1686831
    Originator: NO

    I think I view some problem according the scenario:
    I configured PopFile a proxy-server to my mail-server. It should works 24 hours on day. But sometimes it hangs. The reason: if receive message (DATA command) time-outed (typical situarion!), my mail-server resets connection. But PopFile hangs on bayes operation:
    2007/1/8 14:02:23 112: bayes: 658: Read slurp data <text>
    In the short, PopFile must support time-out reset from mail-server.

     
  • Boris Berdichevski

    Logged In: YES
    user_id=1686831
    Originator: NO

    I see there is 'slurp_' used to read message strings from mail sender (after command DATA). There is not TIMEOUT!
    SMTP.pm:
    if ( $command =~ /DATA/i ) {
    # Get the message from the remote server, if there's an error then we're done, but if not then
    # we echo each line of the message until we hit the . at the end
    if ( $self->smtp_echo_response_( $mail, $client, $command ) ) {
    $count += 1;

    my ( $class, $history_file ) = $self->{classifier__}->classify_and_modify( $session, $client, $mail, 0, '', 0 );

    ******** my $response = $self->slurp_( $mail ); ****** NO TIMEOUT!!!! ******
    $self->tee_( $client, $response );
    next;
    }
    }
    BAYES.pm
    ****** NO TIMEOUT!!!! ******
    while ( my $line = $self->slurp_( $mail ) ) {
    ...

     
  • David Fishburn

    David Fishburn - 2007-01-09

    Logged In: YES
    user_id=983517
    Originator: NO

    I am using MS Outlook 2003 SP2, note that is not Outlook Express.

     
  • Boris Berdichevski

    Logged In: YES
    user_id=1686831
    Originator: NO

    It doesn't matter.
    The bug appears if connection losts at the moment when PopFile 'downloads' message from mail sender (SMPT server, local or remote), after DATA command.

     
  • John Graham-Cumming

    Logged In: YES
    user_id=578491
    Originator: NO

    I'm a little confused because you appear to be talking about the SMTP proxy module. Can you clarify your set up for me? You are not doing POP through POPFile, right?

    John.

     
  • Boris Berdichevski

    Logged In: YES
    user_id=1686831
    Originator: NO

    Yes, I have own mail server that can delete SPAM messages according PopFile classification, and I don't need POP through PopFile. I use PopFile as proxy before my mail server. And the bug prevents normal work of my system!

     
  • Boris Berdichevski

    Logged In: YES
    user_id=1686831
    Originator: NO

    I never build .exe from source code of PopFile. I'm studied now how to build them. If I success, I can to fix the bug.
    If somebody can reffer my to any instructions of build binaries...

     
  • David Fishburn

    David Fishburn - 2007-01-12

    Logged In: YES
    user_id=983517
    Originator: NO

    I am using standard POP via Outlook (not Express) and it routinely hangs. So there must be another call similar to what Boris pointed out with SMTP that does not respect a timeout or error. This happens at least 5-10 times a day for me when I am connected over a VPN. I have to kill popfileib each time and restart it.

     
  • David Fishburn

    David Fishburn - 2007-01-12

    Logged In: YES
    user_id=983517
    Originator: NO

    I have some additional background information on this:
    - My company uses Lotus Notes.
    - I use Outlook (not Express) as my frontend.
    - The problems occur with increasing frequency depending on the number of unread messages in my Notes account
    - I tell Outlook to leave 31 days worth of email on the server before deleting them
    - When unread messages reach ~5000 Popfile will hang routinely.
    - When unread messages are ~2000, no problems.

    Is there any additional information (logs?) I can provide to help identify the issue. Please also indicate how I can turn on these logs and where they are stored. WinXP SP2

    Thanks,
    Dave

     
  • Boris Berdichevski

    Logged In: YES
    user_id=1686831
    Originator: NO

    I've changed code and I'm testing it now. If test will success, I'll inform about the changes.

     
  • Boris Berdichevski

    Logged In: YES
    user_id=1686831
    Originator: NO

    Sorry, I don't aplly yet one change into code. Please wait...

     
  • David Fishburn

    David Fishburn - 2007-01-24

    Logged In: YES
    user_id=983517
    Originator: NO

    I have a log now created following these instructions:
    http://getpopfile.org/cgi-bin/wiki.pl?TroubleShooting/PrepareLog

    It is 1 meg in size, not sure how to attach it.

    Looking through the log doesn't really show me much:

    This is the last section:
    2007/1/24 10:29:07 916: pop3: 209: Command: --LIST--
    2007/1/24 10:29:07 916: pop3: 301: LIST[0d][0a]
    2007/1/24 10:29:09 916: pop3: 658: Read slurp data +OK 5186 messages.[0d][0a]1 5522[0d][0a]2 3623[0d][0a]3 2246[0d][0a]4 4626[0d][0a]5 8241[0d][0a]6 7155[0d][0a]7 12133[0d][0a]8 5135[0d][0a]9 8328[0d][0a]10 3874[0d][0a]11 4714[0d][0a]12 4784[0d][0a]13 6455[0d][0a]14 5664[0d][0a]15 3932[0d][0a]16 5485[0d][0a]17 5
    2007/1/24 10:29:09 916: pop3: 301: +OK 5186 messages.[0d][0a]
    2007/1/24 10:29:09 916: pop3: 658: Read slurp data 471[0d][0a]18 4995[0d][0a]19 6120[0d][0a]20 3938[0d][0a]21 4617[0d][0a]22 3958[0d][0a]23 4478[0d][0a]24 4078[0d][0a]25 3626[0d][0a]26 5165[0d][0a]27 5409[0d][0a]28 7223[0d][0a]29 4179[0d][0a]30 4298[0d][0a]31 5247[0d][0a]32 4699[0d][0a]33 4458[0d][0a]34 5190[0d][0a]35
    2007/1/24 10:29:09 916: pop3: 658: Read slurp data 5345[0d][0a]36 4575[0d][0a]37 8311[0d][0a]38 4640[0d][0a]39 6113[0d][0a]40 3786[0d][0a]41 4904[0d][0a]42 3889[0d][0a]43 3679[0d][0a]44 5338[0d][0a]45 5325[0d][0a]46 14601[0d][0a]47 7220[0d][0a]48 4522[0d][0a]49 4040[0d][0a]50 4431[0d][0a]51 4205[0d][0a]52 4924[0d]
    2007/1/24 10:29:09 916: pop3: 658: Read slurp data 53 3915[0d][0a]54 9828[0d][0a]55 8569[0d][0a]56 4581[0d][0a]57 5376[0d][0a]58 6244[0d][0a]59 4871[0d][0a]60 4880[0d][0a]61 5906[0d][0a]62 12003[0d][0a]63 5331[0d][0a]64 5433[0d][0a]65 5376[0d][0a]66 4657[0d][0a]67 6468[0d][0a]68 6096[0d][0a]69 5113[0d][0a]70 490
    2007/1/24 10:29:09 916: pop3: 658: Read slurp data 9[0d][0a]71 4500[0d][0a]72 6048[0d][0a]73 5165[0d][0a]74 9675[0d][0a]75 9072[0d][0a]76 6396[0d][0a]77 4971[0d][0a]78 6698[0d][0a]79 14253[0d][0a]80 8491[0d][0a]81 10835[0d][0a]82 6664[0d][0a]83 5100[0d][0a]84 7682[0d][0a]85 6637[0d][0a]86 4406[0d][0a]87 4507[0d][0a]88
    2007/1/24 10:29:09 916: pop3: 658: Read slurp data 3921[0d][0a]89 4397[0d][0a]90 4122[0d][0a]91 3665[0d][0a]92 7606[0d][0a]93 4129[0d][0a]94 10781[0d][0a]95 4941[0d][0a]96 4170[0d][0a]97 6838[0d][0a]98 4165[0d][0a]99 7095[0d][0a]100 5281[0d][0a]101 4765[0d][0a]102 4506[0d][0a]103 5664[0d][0a]104 4337[0d][0a]105
    2007/1/24 10:29:09 916: pop3: 658: Read slurp data 4226[0d][0a]106 3741[0d][0a]107 5808[0d][0a]108 4178[0d][0a]109 5644[0d][0a]110 7327[0d][0a]111 6096[0d][0a]112 4051[0d][0a]113 6825[0d][0a]114 4192[0d][0a]115 4445[0d][0a]116 4901[0d][0a]117 3287[0d][0a]118 4949[0d][0a]119 5074[0d][0a]120 4252[0d][0a]121
    2007/1/24 10:29:09 916: pop3: 658: Read slurp data 5214[0d][0a]122 6613[0d][0a]123 9066[0d][0a]124 8453[0d][0a]125 7764[0d][0a]126 4534[0d][0a]127 3921[0d][0a]128 4388[0d][0a]129 5221[0d][0a]130 10861[0d][0a]131 5143[0d][0a]132 3816[0d][0a]133 8283[0d][0a]134 7022[0d][0a]135 4732[0d][0a]136 4960[0d][0a]13
    2007/1/24 10:29:09 916: pop3: 658: Read slurp data 7 4778[0d][0a]138 5423[0d][0a]139 4567[0d][0a]140 5202[0d][0a]141 3798[0d][0a]142 5088[0d][0a]143 5430[0d][0a]144 13943[0d][0a]145 3769[0d][0a]146 3953[0d][0a]147 3985[0d][0a]148 5138[0d][0a]149 5767[0d][0a]150 3906[0d][0a]151 1929[0d][0a]152 4754[0d][0a]1
    2007/1/24 10:29:09 916: pop3: 658: Read slurp data 53 5646[0d][0a]154 7140[0d][0a]155 5812[0d][0a]156 3742[0d][0a]157 4611[0d][0a]158 4752[0d][0a]159 5110[0d][0a]160 4397[0d][0a]161 5311[0d][0a]162 7951[0d][0a]163 6764[0d][0a]164 455[0d][0a]165 2257[0d][0a]166 5141[0d][0a]167 3958[0d][0a]168 5247[0d][0a]16
    2007/1/24 10:29:09 916: pop3: 658: Read slurp data 9 4847[0d][0a]170 5329[0d][0a]171 6831[0d][0a]172 4846[0d][0a]173 3103[0d][0a]174 3790[0d][0a]175 4554[0d][0a]176 6147[0d][0a]177 5274[0d][0a]178 5247[0d][0a]179 3902[0d][0a]180 10390[0d][0a]181 8173[0d][0a]182 9304[0d][0a]183 3824[0d][0a]184 6307[0d][0a]1
    2007/1/24 10:29:09 916: pop3: 658: Read slurp data 85 5440[0d][0a]186 7357[0d][0a]187 1929[0d][0a]188 5326[0d][0a]189 4843[0d][0a]190 2839[0d][0a]191 2839[0d][0a]192 4439[0d][0a]193 1269[0d][0a]194 10845[0d][0a]195 7579[0d][0a]196 2864[0d][0a]197 2855[0d][0a]198 4252[0d][0a]199 1150[0d][0a]200 1929[0d][0a]
    2007/1/24 10:29:09 916: pop3: 658: Read slurp data 201 4472[0d][0a]202 5070[0d][0a]203 5212[0d][0a]204 4270[0d][0a]205 5432[0d][0a]206 3569[0d][0a]207 9356[0d][0a]208 4899[0d][0a]
    2007/1/24 10:29:11 916: pop3: 658: Read slurp data 209 2324[0d][0a]210 6699[0d][0a]211 8196[0d][0a]212 3794[0d][0a]213 4240[0d][0a]214 2882[0d][0a]215 4869[0d][0a]216 8935[0d][0a]217 5321[0d][0a]218 4610[0d][0a]219 2866[0d][0a]220 2865[0d][0a]221 4065[0d][0a]222 5345[0d][0a]223 5664[0d][0a]224 5559[0d][0a]
    2007/1/24 10:29:11 916: pop3: 658: Read slurp data 225 5531[0d][0a]226 9337[0d][0a]227 4080[0d][0a]228 5552[0d][0a]229 5943[0d][0a]230 4486[0d][0a]231 3735[0d][0a]232 7697[0d][0a]233 7278[0d][0a]234 4646[0d][0a]235 6073[0d][0a]236 4888[0d][0a]237 5608[0d][0a]238 4464[0d][0a]239 5117[0d][0a]240 6651[0d][0a]
    2007/1/24 10:29:11 916: pop3: 658: Read slurp data 241 4417[0d][0a]242 5967[0d][0a]243 4648[0d][0a]244 5161[0d][0a]245 3870[0d][0a]246 4507[0d][0a]247 4781[0d][0a]248 5908[0d][0a]249 4799[0d][0a]250 4699[0d][0a]251 9339[0d][0a]252 4474[0d][0a]253 9491[0d][0a]254 4683[0d][0a]255 8416[0d][0a]256 5288[0d][0a]
    2007/1/24 10:29:11 916: pop3: 658: Read slurp data 257 2236[0d][0a]258 3746[0d][0a]259 5161[0d][0a]260 17014[0d][0a]261 4628[0d][0a]262 4250[0d][0a]263 4695[0d][0a]264 4742[0d][0a]265 9346[0d][0a]266 3884[0d][0a]267 6849[0d][0a]268 3901[0d][0a]269 5209[0d][0a]270 9539[0d][0a]271 7215[0d][0a]272 3908[0d]
    2007/1/24 10:29:11 916: pop3: 658: Read slurp data 273 4044[0d][0a]274 1893[0d][0a]275 1897[0d][0a]276 1889[0d][0a]277 4530[0d][0a]278 1875[0d][0a]279 1871[0d][0a]280 1887[0d][0a]281 5237[0d][0a]282 5925[0d][0a]283 4486[0d][0a]284 6118[0d][0a]285 662[0d][0a]286 9528[0d][0a]287 12816[0d][0a]288 3594[0d][0a]
    2007/1/24 10:29:11 916: pop3: 658: Read slurp data 289 4467[0d][0a]290 11638[0d][0a]291 5642[0d][0a]292 2886[0d][0a]293 2886[0d][0a]294 2715[0d][0a]295 6286[0d][0a]296 4161[0d][0a]297 5673[0d][0a]298 6862[0d][0a]299 4942[0d][0a]300 5012[0d][0a]301 4735[0d][0a]302 4039[0d][0a]303 2887[0d][0a]304 2887[0d]
    2007/1/24 10:29:11 916: pop3: 658: Read slurp data 305 4942[0d][0a]306 3606[0d][0a]307 3966[0d][0a]308 4406[0d][0a]309 3908[0d][0a]310 4604[0d][0a]311 9064[0d][0a]312 4594[0d][0a]313 18018[0d][0a]314 5834[0d][0a]315 5662[0d][0a]316 4833[0d][0a]317 4400[0d][0a]318 4537[0d][0a]319 8086[0d][0a]320 6777[0d]
    2007/1/24 10:29:11 916: pop3: 658: Read slurp data 321 8319[0d][0a]322 5042[0d][0a]323 6351[0d][0a]324 9338[0d][0a]325 7815[0d][0a]326 5432[0d][0a]327 10064[0d][0a]328 12968[0d][0a]329 4225[0d][0a]330 14484[0d][0a]331 430695[0d][0a]332 5119[0d][0a]333 4461[0d][0a]334 4664[0d][0a]335 597[0d][0a]336 44
    2007/1/24 10:29:11 916: pop3: 658: Read slurp data 73[0d][0a]337 4477[0d][0a]338 4144[0d][0a]339 5040[0d][0a]340 4019[0d][0a]341 4618[0d][0a]342 9348[0d][0a]343 5259[0d][0a]344 8483[0d][0a]345 4404[0d][0a]346 5334[0d][0a]347 4802[0d][0a]348 4090[0d][0a]349 2798[0d][0a]350 3524[0d][0a]351 5060[0d][0a]352 59
    2007/1/24 10:29:11 916: pop3: 658: Read slurp data 55[0d][0a]353 5314[0d][0a]354 5418[0d][0a]355 4466[0d][0a]356 5101[0d][0a]357 4900[0d][0a]358 6904[0d][0a]359 5093[0d][0a]360 9889[0d][0a]361 4603[0d][0a]362 4553[0d][0a]363 9336[0d][0a]364 3975[0d][0a]365 4382[0d][0a]366 8569[0d][0a]367 5249[0d][0a]368 41
    2007/1/24 10:29:11 916: pop3: 658: Read slurp data 04[0d][0a]369 5783[0d][0a]370 4842[0d][0a]371 4882[0d][0a]372 5357[0d][0a]373 3939[0d][0a]374 4396[0d][0a]375 4294[0d][0a]376 4370[0d][0a]377 3952[0d][0a]378 7144[0d][0a]379 4348[0d][0a]380 4211[0d][0a]381 8418[0d][0a]382 7176[0d][0a]383 9369[0d][0a]384 10
    2007/1/24 10:29:11 916: pop3: 658: Read slurp data 022[0d][0a]385 5565[0d][0a]386 5415[0d][0a]387 4990[0d][0a]388 4294[0d][0a]389 5600[0d][0a]390 4624[0d][0a]391 10759[0d][0a]392 4548[0d][0a]393 5872[0d][0a]394 5694[0d][0a]395 4155[0d][0a]396 12129[0d][0a]397 5156[0d][0a]398 4346[0d][0a]399 6067[0d][0a]400
    2007/1/24 10:29:11 916: pop3: 658: Read slurp data 8001[0d][0a]401 5713[0d][0a]402 4183[0d][0a]403 5442[0d][0a]404 5546[0d][0a]405 3104[0d][0a]406 4391[0d][0a]407 6830[0d][0a]408 4793[0d][0a]

    What additional information would you like me to capture (and how)?

     
  • David Fishburn

    David Fishburn - 2007-01-28

    Logged In: YES
    user_id=983517
    Originator: NO

    It looks like Outlook had a timeout set to be 1 minute. I have cranked up that limit to 6 minutes and nothing has hung since.

    That will most likely get rid of my issue. But why does Popfile never return when it gets into this situation? What blocking call has it made? Having to kill it should not be necessary.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks