krsna4u / skpsmtpmessage

Automatically exported from code.google.com/p/skpsmtpmessage
0 stars 0 forks source link

Sending via comcast.net in rapid success causes NSException. #12

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. This seems to occur when trying to send multiple emails in rapid succession 
while using 
smtp.comcast.net as a relay server
2. Cannot reproduce using my own postfix server
3.

What is the expected output? What do you see instead?
Expected to see a bunch of successfully sent emails.  Comcast seems to have a 
rate limiter, but 
skpsmtpmessage doesn't seem to handle rejection gracefully.

What version of the product are you using? On what operating system?
r22

Please provide any additional information below.
run
Running…
[Switching to thread 10755]
[Switching to thread 10755]
(gdb) continue
2009-01-16 10:40:06.246 RingItUp[3311:20b] C: Attempting to connect to server 
at: 
smtp.comcast.net:25
2009-01-16 10:40:08.051 RingItUp[3311:20b] C: Attempting to connect to server 
at: 
smtp.comcast.net:25
2009-01-16 10:40:09.835 RingItUp[3311:20b] C: Attempting to connect to server 
at: 
smtp.comcast.net:25
2009-01-16 10:39:59.315 RingItUp[3311:20b] C: Attempting to connect to server 
at: 
smtp.comcast.net:25
2009-01-16 10:40:02.017 RingItUp[3311:20b] C: Attempting to connect to server 
at: 
smtp.comcast.net:465
2009-01-16 10:40:02.466 RingItUp[3311:20b] C: Attempting to connect to server 
at: 
smtp.comcast.net:25
2009-01-16 10:40:03.273 RingItUp[3311:20b] *** stopping watchdog ***
2009-01-16 10:40:03.285 RingItUp[3311:20b] S: 421 
OMTA13.westchester.pa.mail.comcast.net 
comcast Too many sessions opened
2009-01-16 10:40:03.292 RingItUp[3311:20b] No buffer!
2009-01-16 10:40:03.299 RingItUp[3311:20b] delegate - error(-4): connection was 
interrupted
2009-01-16 10:40:03.795 RingItUp[3311:20b] C: Attempting to connect to server 
at: 
smtp.comcast.net:465
2009-01-16 10:40:05.575 RingItUp[3311:20b] C: Attempting to connect to server 
at: 
smtp.comcast.net:465
2009-01-16 10:40:07.173 RingItUp[3311:20b] *** stopping watchdog ***
2009-01-16 10:40:07.179 RingItUp[3311:20b] S: 220 
OMTA02.westchester.pa.mail.comcast.net 
comcast ESMTP server ready
2009-01-16 10:40:07.185 RingItUp[3311:20b] C: EHLO localhost
2009-01-16 10:40:07.191 RingItUp[3311:20b] *** starting short watchdog ***
2009-01-16 10:40:07.764 RingItUp[3311:20b] *** stopping watchdog ***
2009-01-16 10:40:07.771 RingItUp[3311:20b] S: 250-
OMTA02.westchester.pa.mail.comcast.net hello [32.159.164.32], pleased to meet 
you
2009-01-16 10:40:07.777 RingItUp[3311:20b] *** stopping watchdog ***
2009-01-16 10:40:07.783 RingItUp[3311:20b] S: 250-HELP
2009-01-16 10:40:07.788 RingItUp[3311:20b] *** stopping watchdog ***
2009-01-16 10:40:07.795 RingItUp[3311:20b] S: 250-AUTH LOGIN PLAIN CRAM-MD5
2009-01-16 10:40:07.800 RingItUp[3311:20b] *** stopping watchdog ***
2009-01-16 10:40:07.831 RingItUp[3311:20b] S: 250-SIZE 15728640
2009-01-16 10:40:07.841 RingItUp[3311:20b] *** stopping watchdog ***
2009-01-16 10:40:07.852 RingItUp[3311:20b] S: 250-ENHANCEDSTATUSCODES
2009-01-16 10:40:07.863 RingItUp[3311:20b] *** stopping watchdog ***
2009-01-16 10:40:07.875 RingItUp[3311:20b] S: 250-8BITMIME
2009-01-16 10:40:07.886 RingItUp[3311:20b] *** stopping watchdog ***
2009-01-16 10:40:07.895 RingItUp[3311:20b] S: 250-STARTTLS
2009-01-16 10:40:07.902 RingItUp[3311:20b] C: STARTTLS
2009-01-16 10:40:07.911 RingItUp[3311:20b] *** starting short watchdog ***
2009-01-16 10:40:07.919 RingItUp[3311:20b] *** stopping watchdog ***
2009-01-16 10:40:07.927 RingItUp[3311:20b] S: 250 OK
2009-01-16 10:40:08.539 RingItUp[3311:20b] *** stopping watchdog ***
2009-01-16 10:40:08.546 RingItUp[3311:20b] S: 220 2.0.0 Ready to start TLS
2009-01-16 10:40:08.553 RingItUp[3311:20b] Beginning TLSv1...
2009-01-16 10:40:08.558 RingItUp[3311:20b] C: EHLO localhost
2009-01-16 10:40:10.059 RingItUp[3311:20b] C: Attempting to connect to server 
at: 
smtp.comcast.net:587
Program received signal:  “EXC_BAD_ACCESS”.
(gdb) backtrace
#0  0x300c8c1c in objc_msgSend ()
#1  0x00062408 in -[SKPSMTPMessage connectionConnectedCheck:] (self=0x178cb0, 
_cmd=0x6f5e0, aTimer=0x178df0) at /Users/tflorman/Projects/RingItUp-
v1.4/Email/SKPSMTPMessage.m:618
#2  0x306942a6 in __NSFireTimer ()
#3  0x30269d8e in CFRunLoopRunSpecific ()
#4  0x30269326 in CFRunLoopRunInMode ()
#5  0x0005e584 in CFWriteStreamWriteFully (outputStream=0x157470, 
buffer=0x1494e0 "EHLO 
localhost\r\n", length=16) at /Users/tflorman/Projects/RingItUp-
v1.4/Email/HSK_CFUtilities.m:54
#6  0x0006124c in -[SKPSMTPMessage parseBuffer] (self=0x1307b0, _cmd=0x6f5c8) 
at 
/Users/tflorman/Projects/RingItUp-v1.4/Email/SKPSMTPMessage.m:411
#7  0x000605c8 in -[SKPSMTPMessage stream:handleEvent:] (self=0x1307b0, 
_cmd=0x300e8a60, stream=0x157400, eventCode=2) at 
/Users/tflorman/Projects/RingItUp-
v1.4/Email/SKPSMTPMessage.m:229
#8  0x306f9d8e in _inputStreamCallbackFunc ()
#9  0x30293806 in _CFStreamSignalEventSynch ()
#10 0x30293794 in _CFStreamSignalEvent ()
#11 0x3029361e in CFReadStreamSignalEvent ()
#12 0x311f9334 in _SocketCallBack ()
#13 0x30293490 in __CFSocketDoCallback ()
#14 0x30293226 in __CFSocketPerformV0 ()
#15 0x30269a8a in CFRunLoopRunSpecific ()
#16 0x30269326 in CFRunLoopRunInMode ()
#17 0x31563e60 in GSEventRunModal ()
#18 0x30a4feb8 in -[UIApplication _run] ()
#19 0x30a5961c in UIApplicationMain ()
#20 0x000020bc in main (argc=1, argv=0x2ffff5fc) at 
/Users/tflorman/Projects/RingItUp-
v1.4/main.m:13
Current language:  auto; currently objective-c

Original issue reported on code.google.com by BSDim...@gmail.com on 16 Jan 2009 at 5:46

GoogleCodeExporter commented 8 years ago
a bit more data

run
Running…
[Switching to thread 10755]
[Switching to thread 10755]
(gdb) continue
2009-01-16 11:23:53.158 RingItUp[3416:20b] C: Attempting to connect to server 
at: smtp.comcast.net:25
2009-01-16 11:23:56.954 RingItUp[3416:20b] *** stopping watchdog ***
2009-01-16 11:23:56.960 RingItUp[3416:20b] S: 220 
OMTA07.emeryville.ca.mail.comcast.net comcast 
ESMTP server ready
2009-01-16 11:23:56.965 RingItUp[3416:20b] C: EHLO localhost
2009-01-16 11:23:56.972 RingItUp[3416:20b] *** starting short watchdog ***
2009-01-16 11:23:57.572 RingItUp[3416:20b] *** stopping watchdog ***
2009-01-16 11:23:57.578 RingItUp[3416:20b] S: 
250-OMTA07.emeryville.ca.mail.comcast.net hello 
[32.159.164.32], pleased to meet you
2009-01-16 11:23:57.587 RingItUp[3416:20b] *** stopping watchdog ***
2009-01-16 11:23:57.592 RingItUp[3416:20b] S: 250-HELP
2009-01-16 11:23:57.615 RingItUp[3416:20b] *** stopping watchdog ***
2009-01-16 11:23:57.626 RingItUp[3416:20b] S: 250-AUTH LOGIN PLAIN CRAM-MD5
2009-01-16 11:23:57.638 RingItUp[3416:20b] *** stopping watchdog ***
2009-01-16 11:23:57.650 RingItUp[3416:20b] S: 250-SIZE 15728640
2009-01-16 11:23:57.667 RingItUp[3416:20b] *** stopping watchdog ***
2009-01-16 11:23:57.679 RingItUp[3416:20b] S: 250-ENHANCEDSTATUSCODES
2009-01-16 11:23:57.690 RingItUp[3416:20b] *** stopping watchdog ***
2009-01-16 11:23:57.702 RingItUp[3416:20b] S: 250-8BITMIME
2009-01-16 11:23:57.714 RingItUp[3416:20b] *** stopping watchdog ***
2009-01-16 11:23:57.725 RingItUp[3416:20b] S: 250-STARTTLS
2009-01-16 11:23:57.737 RingItUp[3416:20b] C: STARTTLS
2009-01-16 11:23:57.750 RingItUp[3416:20b] *** starting short watchdog ***
2009-01-16 11:23:57.763 RingItUp[3416:20b] *** stopping watchdog ***
2009-01-16 11:23:57.775 RingItUp[3416:20b] S: 250 OK
2009-01-16 11:23:58.226 RingItUp[3416:20b] *** stopping watchdog ***
2009-01-16 11:23:58.234 RingItUp[3416:20b] S: 220 2.0.0 Ready to start TLS
2009-01-16 11:23:58.247 RingItUp[3416:20b] Beginning TLSv1...
2009-01-16 11:23:58.272 RingItUp[3416:20b] C: EHLO localhost
2009-01-16 11:23:58.788 RingItUp[3416:20b] C: Attempting to connect to server 
at: smtp.comcast.net:25
2009-01-16 11:23:59.890 RingItUp[3416:20b] *** stopping watchdog ***
2009-01-16 11:23:59.935 RingItUp[3416:20b] S: 421 
OMTA07.emeryville.ca.mail.comcast.net comcast Too 
many sessions opened
2009-01-16 11:23:59.964 RingItUp[3416:20b] No buffer!
2009-01-16 11:24:00.038 RingItUp[3416:20b] delegate - error(-4): connection was 
interrupted
2009-01-16 11:24:00.509 RingItUp[3416:20b] *** starting short watchdog ***
2009-01-16 11:24:00.977 RingItUp[3416:20b] *** stopping watchdog ***
2009-01-16 11:24:00.992 RingItUp[3416:20b] S: 
250-OMTA07.emeryville.ca.mail.comcast.net hello 
[32.159.164.32], pleased to meet you
2009-01-16 11:24:01.007 RingItUp[3416:20b] *** stopping watchdog ***
2009-01-16 11:24:01.014 RingItUp[3416:20b] S: 250-HELP
2009-01-16 11:24:01.028 RingItUp[3416:20b] *** stopping watchdog ***
2009-01-16 11:24:01.070 RingItUp[3416:20b] S: 250-AUTH LOGIN PLAIN CRAM-MD5
2009-01-16 11:24:01.081 RingItUp[3416:20b] *** stopping watchdog ***
2009-01-16 11:24:01.092 RingItUp[3416:20b] S: 250-SIZE 15728640
2009-01-16 11:24:01.101 RingItUp[3416:20b] *** stopping watchdog ***
2009-01-16 11:24:01.107 RingItUp[3416:20b] S: 250-ENHANCEDSTATUSCODES
2009-01-16 11:24:01.112 RingItUp[3416:20b] *** stopping watchdog ***
2009-01-16 11:24:01.123 RingItUp[3416:20b] S: 250-8BITMIME
2009-01-16 11:24:01.128 RingItUp[3416:20b] *** stopping watchdog ***
2009-01-16 11:24:01.133 RingItUp[3416:20b] S: 250 OK
2009-01-16 11:24:01.140 RingItUp[3416:20b] C: AUTH PLAIN 
AHRoaXN3ZWVraW5ncm9jZXJpZXNAY29tY2FzdC5uZXQAdGhyNDRUSU5ZdDB0cw==
2009-01-16 11:24:01.147 RingItUp[3416:20b] *** starting short watchdog ***
2009-01-16 11:24:01.560 RingItUp[3416:20b] *** stopping watchdog ***
2009-01-16 11:24:01.567 RingItUp[3416:20b] S: 235 2.7.0 ... authentication 
succeeded
2009-01-16 11:24:01.572 RingItUp[3416:20b] C: MAIL FROM:<support@florman.net> 
BODY=8BITMIME
2009-01-16 11:24:01.590 RingItUp[3416:20b] *** starting short watchdog ***
2009-01-16 11:24:04.275 RingItUp[3416:20b] *** stopping watchdog ***
2009-01-16 11:24:04.281 RingItUp[3416:20b] S: 250 2.1.0 <support@florman.net> 
sender ok
2009-01-16 11:24:04.287 RingItUp[3416:20b] C: RCPT TO:<todd@florman.net>
2009-01-16 11:24:04.293 RingItUp[3416:20b] *** starting short watchdog ***
2009-01-16 11:24:04.457 RingItUp[3416:20b] C: Attempting to connect to server 
at: smtp.comcast.net:25
2009-01-16 11:24:06.338 RingItUp[3416:20b] C: Attempting to connect to server 
at: smtp.comcast.net:25
2009-01-16 11:24:06.795 RingItUp[3416:20b] *** -[NSCFData close]: unrecognized 
selector sent to instance 
0x179bc0
2009-01-16 11:24:06.826 RingItUp[3416:20b] *** Terminating app due to uncaught 
exception 
'NSInvalidArgumentException', reason: '*** -[NSCFData close]: unrecognized 
selector sent to instance 
0x179bc0'
2009-01-16 11:24:06.864 RingItUp[3416:20b] Stack: (
    808221155,
    806100816,
    808224837,
    807957033,
    807851552,
    402741,
    812204711,
    807837071,
    807834407,
    827735648,
    816119480,
    816158236,
    8381,
    8244
)
terminate called after throwing an instance of 'NSException'
(gdb) backtrace
#0  0x31459c58 in __kill ()
#1  0x31459c4c in kill ()
#2  0x31459c40 in raise ()
#3  0x3147442a in abort ()
#4  0x30075b44 in __gnu_cxx::__verbose_terminate_handler ()
#5  0x300c2100 in _objc_terminate ()
#6  0x300730d8 in std::terminate ()
#7  0x300731e0 in __cxa_throw ()
#8  0x300c1f8c in objc_exception_throw ()
#9  0x302c8844 in -[NSObject doesNotRecognizeSelector:] ()
#10 0x30287228 in ___forwarding___ ()
#11 0x3026d620 in __forwarding_prep_0___ ()
#12 0x00062534 in -[SKPSMTPMessage connectionConnectedCheck:] (self=0x179750, 
_cmd=0x6f770, 
aTimer=0x1799e0) at 
/Users/tflorman/Projects/RingItUp-v1.4/Email/SKPSMTPMessage.m:618
#13 0x306942a6 in __NSFireTimer ()
#14 0x30269d8e in CFRunLoopRunSpecific ()
#15 0x30269326 in CFRunLoopRunInMode ()
#16 0x31563e60 in GSEventRunModal ()
#17 0x30a4feb8 in -[UIApplication _run] ()
#18 0x30a5961c in UIApplicationMain ()
#19 0x000020bc in main (argc=1, argv=0x2ffff5fc) at 
/Users/tflorman/Projects/RingItUp-v1.4/main.m:13
Current language:  auto; currently objective-c

Original comment by BSDim...@gmail.com on 16 Jan 2009 at 6:26

GoogleCodeExporter commented 8 years ago
Please try the new code. I don't have a comcast acct. to test against.

Original comment by ibaird@gmail.com on 20 Feb 2009 at 3:28