Socket error 590615

Ich habe derzeit Schwierigkeiten, mit dem WCF rauszumailen: (Quelltext, 18 Zeilen) Allerdings funktioniert der Mailversand mit dem PHPMailer [URL:https://github.com/PHPMailer/PHPMailer] und denselben Einstellungen, weshalb ich ein Problem im WCF…


    • #1

    Ich habe derzeit Schwierigkeiten, mit dem WCF rauszumailen:

    Sun 2017-01-08 15:32:41.143: Session 048624; child 0001
    Sun 2017-01-08 15:32:41.143: Accepting SMTP connection from xxx.xxx.xxx.xxx:39684 to 192.168.10.6:25
    Sun 2017-01-08 15:32:41.143: --> 220-host.tld ESMTP MDaemon 16.5.2; Sun, 08 Jan 2017 15:32:41 +0100
    Sun 2017-01-08 15:32:41.143: --> 220 NO RELAY, WE TRACK ALL IP´S
    Sun 2017-01-08 15:32:41.162: <-- EHLO client.tld
    Sun 2017-01-08 15:32:41.162: --> 250-host.tld Hello client.tld [xxx.xxx.xxx.xxx], pleased to meet you
    Sun 2017-01-08 15:32:41.162: --> 250-ETRN
    Sun 2017-01-08 15:32:41.162: --> 250-AUTH LOGIN CRAM-MD5 PLAIN
    Sun 2017-01-08 15:32:41.162: --> 250-8BITMIME
    Sun 2017-01-08 15:32:41.162: --> 250-ENHANCEDSTATUSCODES
    Sun 2017-01-08 15:32:41.162: --> 250-STARTTLS
    Sun 2017-01-08 15:32:41.162: --> 250 SIZE
    Sun 2017-01-08 15:32:41.181: <-- STARTTLS
    Sun 2017-01-08 15:32:41.181: --> 220 2.7.0 Ready to start TLS
    Sun 2017-01-08 15:32:41.234: SSL negotiation successful (TLS 1.0, 384 bit key exchange, 256 bit AES encryption)
    Sun 2017-01-08 15:32:41.253: * Socket error 590615 - Der Absender hat die Nutzung der Verbindung beendet und eine Trennung eingeleitet.
    Sun 2017-01-08 15:32:41.253: SMTP session terminated (Bytes in/out: 434/1746)

    Alles anzeigen

    Allerdings funktioniert der Mailversand mit dem PHPMailer und denselben Einstellungen, weshalb ich ein Problem im WCF selbst vermute.

    Irgendwer eine Idee? Tim Düsterhus

    • Offizieller Beitrag
    • #2

    Hallo,

    was für Fehlermeldungen erzeugt das WCF denn?

    • #3

    Das WCF sagt gar nichts. Auch kein Eintrag im Log zu finden.

    Für mich sieht das so aus, als würde das WCF die Verbindung zu früh beenden und nicht auf die Antwort des Servers warten.

    • Offizieller Beitrag
    • #4

    Hallo,

    das kann aber nicht sein. Das WCF beendet an der Stelle gar nichts. Entweder es wird eine Exception geworfen, weil die Verbindung abbricht oder der komplette Request stirbt innerhalb von PHP. Das hier ist die Stelle mit dem STARTTLS-Kommando: https://github.com/WoltLab/WCF…PMailSender.class.php#L84

    • #5

    Ich bin leider kein Mailserver-Experte. Ich weiß nur, dass das mittlerweile zu einem echten Problem wird.

    Wie gesagt… Mit dem o.g. PHP-Script (wird u.A. in WordPress eingesetzt) funktioniert es problemlos. Im WCF mit denselben Einstellungen leider nicht.

    • Offizieller Beitrag
    • #6

    Hallo,

    du kannst probieren auf der anderen Seite (i.e. innerhalb des WCF) zu loggen, was dessen Meinung nach mit dem Mailserver ausgetauscht wird. Und wenn dort ebenfalls Schicht ist und trotzdem keine Exception geworfen wird, dann kannst du den PHP-Prozess mal tracen.

0 = Success 1 = Operation not permitted 2 = No such file or directory 3 = No such process 4 = Interrupted system call 5 = Input/output error 6 = No such device or address 7 = Argument list too long 8 = Exec format error 9 = Bad file descriptor 10 = No child processes 11 = Resource temporarily unavailable 12 = Cannot allocate memory 13 = Permission denied 14 = Bad address 15 = Block device required 16 = Device or resource busy 17 = File exists 18 = Invalid cross-device link 19 = No such device 20 = Not a directory 21 = Is a directory 22 = Invalid argument 23 = Too many open files in system 24 = Too many open files 25 = Inappropriate ioctl for device 26 = Text file busy 27 = File too large 28 = No space left on device 29 = Illegal seek 30 = Read-only file system 31 = Too many links 32 = Broken pipe 33 = Numerical argument out of domain 34 = Numerical result out of range 35 = Resource deadlock avoided 36 = File name too long 37 = No locks available 38 = Function not implemented 39 = Directory not empty 40 = Too many levels of symbolic links 41 = Unknown error 41 42 = No message of desired type 43 = Identifier removed 44 = Channel number out of range 45 = Level 2 not synchronized 46 = Level 3 halted 47 = Level 3 reset 48 = Link number out of range 49 = Protocol driver not attached 50 = No CSI structure available 51 = Level 2 halted 52 = Invalid exchange 53 = Invalid request descriptor 54 = Exchange full 55 = No anode 56 = Invalid request code 57 = Invalid slot 58 = Unknown error 58 59 = Bad font file format 60 = Device not a stream 61 = No data available 62 = Timer expired 63 = Out of streams resources 64 = Machine is not on the network 65 = Package not installed 66 = Object is remote 67 = Link has been severed 68 = Advertise error 69 = Srmount error 70 = Communication error on send 71 = Protocol error 72 = Multihop attempted 73 = RFS specific error 74 = Bad message 75 = Value too large for defined data type 76 = Name not unique on network 77 = File descriptor in bad state 78 = Remote address changed 79 = Can not access a needed shared library 80 = Accessing a corrupted shared library 81 = .lib section in a.out corrupted 82 = Attempting to link in too many shared libraries 83 = Cannot exec a shared library directly 84 = Invalid or incomplete multibyte or wide character 85 = Interrupted system call should be restarted 86 = Streams pipe error 87 = Too many users 88 = Socket operation on non-socket 89 = Destination address required 90 = Message too long 91 = Protocol wrong type for socket 92 = Protocol not available 93 = Protocol not supported 94 = Socket type not supported 95 = Operation not supported 96 = Protocol family not supported 97 = Address family not supported by protocol 98 = Address already in use 99 = Cannot assign requested address 100 = Network is down 101 = Network is unreachable 102 = Network dropped connection on reset 103 = Software caused connection abort 104 = Connection reset by peer 105 = No buffer space available 106 = Transport endpoint is already connected 107 = Transport endpoint is not connected 108 = Cannot send after transport endpoint shutdown 109 = Too many references: cannot splice 110 = Connection timed out 111 = Connection refused 112 = Host is down 113 = No route to host 114 = Operation already in progress 115 = Operation now in progress 116 = Stale NFS file handle 117 = Structure needs cleaning 118 = Not a XENIX named type file 119 = No XENIX semaphores available 120 = Is a named type file 121 = Remote I/O error 122 = Disk quota exceeded 123 = No medium found 124 = Wrong medium type

0 / 0 / 0

Регистрация: 24.01.2013

Сообщений: 12

1

25.02.2017, 16:30. Показов 7529. Ответов 8


Подскажите, при запуске программы выскакивает окно — windows socket error: обычно разрешается только одно использование адреса сокета (протокол/сетевой адрес/порт) (10048), on API ‘buld’

При запуске программы - windows socket error

и еще одно — Acces violation at address 00502CCF in module ‘HASyn.exe’. Write of address 0FA5C000.

При запуске программы - windows socket error

Название: 03.png
Просмотров: 76

Размер: 16.0 Кб
подскажите, можно ли это исправить, если да то как.

__________________
Помощь в написании контрольных, курсовых и дипломных работ, диссертаций здесь



0



4232 / 1738 / 245

Регистрация: 01.05.2013

Сообщений: 7,647

25.02.2017, 18:18

2

anton877, Windows sockets error codes, values, and meanings.

WSAEADDRINUSE (10048)

Перевод: адрес уже используется.
Описание: обычно разрешается только одно использование адреса сокета (протокол/IP-адрес/порт). Эта ошибка возникает, если программа пытается выполнить привязку сокета к IP-адрес или порт, который уже был использован для существующего сокета socket, который был закрыт неправильно, (Wsapiref_6vzm.asp), или сокет в процессе закрытия. Программы сервера привязать несколько разъемов на тот же номер порта рассмотрите возможность использования setsockopt (Wsapiref_94aa.asp)(SO_REUSEADDR). Клиентские программы обычно не требуется вызывать все привязки, подключения (Wsapiref_8m7m.asp) автоматически выбирает неиспользуемый порт. При вызове bind с адресом подстановочный знак (включающих ADDR_ANY) WSAEADDRINUSE ошибка может быть отложена до определенного адреса фиксируется. Это может произойти при вызове другой функции, которая происходит более поздних, включая подключение, прослушивания, WSAConnect или WSAJoinLeaf.

Посмотрите. Будет ли наблюдаться эта ошибка при запуске программы в Безопасном режиме с загрузкой сетевых драйверов ?



0



0 / 0 / 0

Регистрация: 24.01.2013

Сообщений: 12

25.02.2017, 18:30

 [ТС]

3

в безопасном режиме тоже самое.



0



4232 / 1738 / 245

Регистрация: 01.05.2013

Сообщений: 7,647

25.02.2017, 18:48

4

anton877, Хм… то что в безопасном выскакивает эта ошибка — странно.
Суть этой ошибки в том,что несколько программ используют один и тот же порт/протокол.
Тут 2 варианта:
1. (простой) Провести диагностику служб и автозагрузки.
Если после отключения сторонних служб/элементом автозагрузки,при запуске программы ошибка больше не выскакивает,то проблема заключается в одной из отключённых сторонних служб или элементе автозагрузки.

Далее действуйте методом «половинного деления». Включите половину служб и снова перезагрузитесь. Если проблема не появляется, причина в оставшихся отключенных службах. Если проблема воспроизводится, причина во включенных службах — отключите половину из них и снова перезагрузитесь.

Действуя таким образом, вы сможете выявить службу, являющуюся причиной проблемы, и определить программу, которой она принадлежит. Далее можно порекомендовать лишь обновление программы до последней версии или ее удаление.

2. Запустить командную строку от имени администратора и ввести команду

Посмотрите нет ли в списке процессов (PID),которые используют один и тот же IP-адрес. Далее запустите диспетчер задач — > вкладка Процессы -> Вид -> Выбрать столбцы -> отметьте ИД процесса и нажмите ОК -> далее с помощью номера PID вы найдёте процессы,кторые используют одни и те же IP-адреса.



0



0 / 0 / 0

Регистрация: 24.01.2013

Сообщений: 12

25.02.2017, 20:20

 [ТС]

5

сейчас попробую.
Turok123, а смотреть нужно локальный адрес или внешний адрес?

Добавлено через 7 минут
запустил, вот скрин

При запуске программы - windows socket error

процесс еще идет

Добавлено через 14 минут
запустил диспечер задач —

При запуске программы - windows socket error

одинаковых не заметил, может не там смотрю?



0



4232 / 1738 / 245

Регистрация: 01.05.2013

Сообщений: 7,647

25.02.2017, 22:54

6

anton877, список активных адресов может быть огромен и не уместится в командной строке. Лучше используйте команду

Код

netstat -aon >C:result.log

.
Далее смотрите содержимое фала C:result.log.



0



0 / 0 / 0

Регистрация: 24.01.2013

Сообщений: 12

26.02.2017, 02:26

 [ТС]

7

при вводе C:result.log. все резко обрывается и я ничего не вижу, окна с процессом работы не вижу.
C:result.log. не находит — вот скрин

При запуске программы - windows socket error

в ИД процесса, я не заметил одинаковых совпадений, или нужно не одинаковые искать?

При запуске программы - windows socket error

При запуске программы - windows socket error



0



4232 / 1738 / 245

Регистрация: 01.05.2013

Сообщений: 7,647

26.02.2017, 02:28

8

anton877, так и должно быть. Весь результат выполнения команды записывается в файл result.log.



0



0 / 0 / 0

Регистрация: 24.01.2013

Сообщений: 12

26.02.2017, 15:25

 [ТС]

9

я у себя не нахожу этого файла result.log



0



Socket error is kind of a common error we often face while using the internet for connecting to another computer, sending mails or just browsing. There are several errors having identical codes.

Sometimes the problem occurs because of our firewall and antivirus settings; sometimes the server or the computer we are trying to connect to reports an error. Basically there are lots of errors like this. Here we are giving some errors and their solutions.

Socket Error 10053

This error message reports “Software caused connection abort”.

Cause

There are several things that cause this error to happen.

  1. The established connection may be aborted by software. This can be possibly done by an antivirus program.
  2. Not only the software, it can also happen by network problem or server problem.
  3. If the port is inactive for a long time, the problem may arise.
  4. The MTU (Maximum Transmission Unit) settings can also create the problem.

Solutions

As the problems are widespread, the solutions are also quite dependent on the type of problem.

  1. If the problem is caused by the VPOP3 client while downloading or sending mail, then the antivirus program can cause the problem. Generally McAfee VirusScan 8 and Norton Antivirus 2004 is the reason behind the error. Also other antivirus programs can create the problem.
  2. If a VPOP3 client has stopped working due to some other reason,we have to wait till it gets fixed.
  3. In the case of MTU settings problems, the large value of MTU can be a cause to discard the message in the network. So we have to set the MTU value at 1432 and the MSS (Maximum Segment Size) must be set to 0 or to auto adjust.

Socket Error 10061

socket error 10061connection refused image

This error report says “Connection refused”.

Cause

There are quite a few reasons for this problem.

  1. The target computer may have refused the connection. This happens when the computer is not connected to any running server application.
  2. Sometimes the destination mail server is refusing to receive mail. The spam filter is preventing the mail from being received. This means the SMTP server is sending junk mails.
  3. The firewall can also block the new connection attempt. The Port 25 (needed for SMTP) and the Port 110 (needed for POP) are blocked by the firewall.
  4. The ISP can also be too busy to accept any new connection.

Solutions

There are couple of solutions for this error.

  1. If the error is reported during sending an email then the SMTP has an error. Maybe we have sent too much mail during a short period to the destination mail. So the destination mail server reported the sending mail server as spam. In this context, we can reduce the frequency of sending mail to the mail server. Also we can send the mail via relay server. But the use of the relay server is not quite secure to use as it’s used by spammers.
  2. We can disable the firewall for some period and try to send mail to the destination mail server. If it succeeds then we can be sure that the firewall is creating the problem. So we can add exceptions for the connection in the firewall.

Socket Error 10049

This error report says “Cannot assign requested address”.

Cause

The main reason behind this error is that the address entered is invalid in the IP address. It happens to bind the address which is not valid in the local computer address. Timing issues in the DNS lookup can also create this error.

Solutions

The solutions for this problem are quite limited.

  1. Sometimes the reason behind this problem is the firewall. So if we put the host for our server in the firewall (it can be our system firewall or the antivirus firewall), it can solve the problem.
  2. Also if we forward the port in the internal IP of the new PC which we are trying to connect, it can resolve the problem.
  3. For the timing issue in the DNS lookup we have to follow some tiny steps. In the ‘Diagnostics’ tab in the VPOP3 we have to press ‘TCP/IP Tuning Option’ button and tick the ‘Use synchronous DNS’.

Socket Error 10051

The error report says “Network is unreachable”.

Cause

There are several reasons behind the problem.

  1. The internet connection may be down so the router can find a way to send the data to the destination.
  2. The router may be misconfigured so the router is not able to communicate with the target server.
  3. The firewall may be blocking port 25, which is used for the SMTP client connection to send mails.
  4. If we have two or more routers connected then windows may be misconfigured to communicate.

Solutions

The solutions for this problem are quite simple.

  1. The ISP sometimes blocks port 25 to control the spam through their servers. So we can call them to unblock port 25 and also we can use their own SMTP server.
  2. If the firewall is blocking port 25 then we can add an exception for the port in the settings of firewall.

Socket Error 11004

socket errors

The error report says “Valid name, no data of requested type”. The requested name is valid and was found in the database, but it does not have the correct associated data being resolved for.

Solutions

  1. As the error is associated with DNS so first of all check whether the address typed is correct or not.
  2. Try to connect with the IP address instead of Domain name. Ping the domain name in the command prompt to get the IP address of the domain name.
  3. We also have to be sure that the firewall or any antivirus program isn’t blocking the ports.
  4. A registry scan may help in this context. Any reliable registry scanner software can do the job.

Socket Error 10013

The error message says “Permission denied”.

Cause

An attempt was made to access a socket in a way forbidden by its access permissions. An example is using a broadcast address for sendto without broadcast permission being set using setsockopt (SO_BROADCAST).

Another possible reason for the WSAEACCES error is that when the bind function is called, another application, service, or kernel mode driver is bound to the same address with exclusive access. Such exclusive access is a new feature of Windows NT 4.0 with SP4 and later, and is implemented by using the SO_EXCLUSIVEADDRUSE option.

Solutions

  1. Check the firewall settings whether it is blocking the port 25 or not. If yes then disable the firewall for some time and check whether the same error persists or not. Then we have to change the firewall settings so that it doesn’t block port 25.
  2. A registry scan may help in this context. Any reliable registry scanner software can do the job.

Socket Error 10060

The error report says “Connection timed out”. It means that the connected host failed to respond or the connection failed after some period of time.

Solutions

  1. The error simply means that the SMTP server needs authentication. So if we are using Outlook Express then we should check the box ‘My server requires authentication’.
  2. The firewall may also be blocking the connection. Disabling the firewall may resolve the error.
  3. The SMTP server may also be blocked. So contacting ISP may resolve the problem.

Понравилась статья? Поделить с друзьями:

Читайте также:

  • Sobol card memory integrity error 3103 reinitialization required system halted
  • Socket error 146
  • Sobol card memory integrity error 3100 reinitialization required
  • Socket error 111 python
  • Sobol card firmware error system halted

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии