Sockets problem

M

mrpolitics

So I'm working with PureIRCD (http://sourceforge.net/projects/pure-ircd)
and everything was fine untill yesterday when the server crashed. So I did
a cold restart and staretd the server back up now it's throwing this stream
of errors right away. DOes anyone have any idea what they mean. I havn't
changed the source at all since it was working (which was for four days).

Unhandled Exception: System.TypeInitializationException: The type
initializer fo
r "System.Net.Sockets.Socket" threw an exception. --->
System.Net.Sockets.Socket
Exception: An operation on a socket could not be performed because the
system la
cked sufficient buffer space or because a queue was full
at System.Net.Sockets.Socket.InitializeSockets()
at System.Net.Sockets.Socket..cctor()
--- End of inner exception stack trace ---
at System.Net.Sockets.Socket..ctor(AddressFamily addressFamily,
SocketType so
cketType, ProtocolType protocolType)
at PureIRCD.EndPoint..ctor() in C:\Documents and
Settings\Jameson.WHITERABBIT
\My Documents\Visual Studio Projects\PureIRCD\connectivity\endpoint.vb:line
380
at PureIRCD.PLine.init(Boolean silent) in C:\Documents and
Settings\Jameson.W
HITERABBIT\My Documents\Visual Studio
Projects\PureIRCD\memory\globals.vb:line 6
62
at PureIRCD.conf.InitLinks() in C:\Documents and
Settings\Jameson.WHITERABBIT
\My Documents\Visual Studio Projects\PureIRCD\memory\conf.vb:line 340
at PureIRCD.IRCd.load_irc() in C:\Documents and
Settings\Jameson.WHITERABBIT\
My Documents\Visual Studio Projects\PureIRCD\core\ircd.vb:line 98
 
A

Armin Zingler

mrpolitics said:
So I'm working with PureIRCD
(http://sourceforge.net/projects/pure-ircd) and everything was fine
untill yesterday when the server crashed. So I did a cold restart
and staretd the server back up now it's throwing this stream of
errors right away. DOes anyone have any idea what they mean. I
havn't changed the source at all since it was working (which was for
four days).

[...]

Sorry that I ask, but where is the relation to this group?
 
M

mrpolitics

Becauase it's written entirely in VB.net (if you coudlnt tell by the error
message) I'm working on using the server here at my campus but I can't seem
to get it back up.

I'm assuming it's a problem with the code.

Armin Zingler said:
mrpolitics said:
So I'm working with PureIRCD
(http://sourceforge.net/projects/pure-ircd) and everything was fine
untill yesterday when the server crashed. So I did a cold restart
and staretd the server back up now it's throwing this stream of
errors right away. DOes anyone have any idea what they mean. I
havn't changed the source at all since it was working (which was for
four days).

[...]

Sorry that I ask, but where is the relation to this group?


--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html
 
A

Armin Zingler

mrpolitics said:
Becauase it's written entirely in VB.net (if you coudlnt tell by the
error message) I'm working on using the server here at my campus but
I can't seem to get it back up.

I'm assuming it's a problem with the code.


How could a server crash create a problem with the code? You wrote "I havn't
changed the source at all", so how can it be a source/VB.NET problem?
 
M

mrpolitics

I think the problem is that it's trying to bind the port...

any info on why binding might cause a server to crash under winxp

Armin Zingler said:
mrpolitics said:
So I'm working with PureIRCD
(http://sourceforge.net/projects/pure-ircd) and everything was fine
untill yesterday when the server crashed. So I did a cold restart
and staretd the server back up now it's throwing this stream of
errors right away. DOes anyone have any idea what they mean. I
havn't changed the source at all since it was working (which was for
four days).

[...]

Sorry that I ask, but where is the relation to this group?


--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html
 
M

mrpolitics

It errors here saying An unhandled exception of type
'System.TypeInitializationException' occurred in system.dll

Additional information: The type initializer for "System.Net.Sockets.Socket"
threw an exception.:

Public Function init() As Integer

YL = GetYLine(cc)

If YL Is Nothing Then

'no such y-line

Return -1

End If

If Not IsIp(address) Then

Try

address = Net.Dns.Resolve(address).AddressList(0).ToString '<------ ERRORS
ON THIS LINE

Catch ex As Exception

Return -1

End Try

End If

End Function
 
M

mrpolitics

I hate to say this but it's obvious. You havn't been programming long have
you?

If the server went down maybe it was a change with XP in which case maybe I
need to modify the code now to handle the new scenario, and possibly the old
one.
 
M

mrpolitics

So really you shoudl have just said "I don't know squat about sockets in
dotnet"
insted of just acting like a child?
 
A

Armin Zingler

mrpolitics said:
So really you shoudl have just said "I don't know squat about sockets
in dotnet"
insted of just acting like a child?

What do you expect as an answer to your provocations?

People reading this group *might* be able to help you, but this is not the
criteria to post it here. The fact that you are *using* VB.NET is *not*
decisive for choosing this group. I also don't post my programming problems
to the WinXP group just because I'm *using* it and just because there
*might* be people who *could* help me there.

Maybe you should read the subject: "Sockets problem", right? VB.NET does not
know sockets. Sockets are a part of the .Net Framework. There are separate
groups for dealing with questions and problems about the Framework. This
means that the problem is langauge independent. It might also apply to C#
and other managed languages because they base upon the Framework.

I also did not ask for source code. Why? You said, you did not change the
source code. The only thing that happened was that your server crashed. To
me it is obvious that you should look for the problem somewhere else, not in
your source code because you did not change it.

That's why I still think: This is not a VB.NET language problem. Please turn
to a different group.

--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html
 
C

Cor

Hi Kudzu,

Now you saw it, I never said that about you.
(And also not about Armin, but when he does real not agry, than he is not
afraid to tell that )

:))

Cor
 
T

Tom Shelton

So I'm working with PureIRCD (http://sourceforge.net/projects/pure-ircd)
and everything was fine untill yesterday when the server crashed. So I did
a cold restart and staretd the server back up now it's throwing this stream
of errors right away. DOes anyone have any idea what they mean. I havn't
changed the source at all since it was working (which was for four days).

Unhandled Exception: System.TypeInitializationException: The type
initializer fo
r "System.Net.Sockets.Socket" threw an exception. --->
System.Net.Sockets.Socket
Exception: An operation on a socket could not be performed because the
system la
cked sufficient buffer space or because a queue was full
at System.Net.Sockets.Socket.InitializeSockets()
at System.Net.Sockets.Socket..cctor()
--- End of inner exception stack trace ---
at System.Net.Sockets.Socket..ctor(AddressFamily addressFamily,
SocketType so
cketType, ProtocolType protocolType)
at PureIRCD.EndPoint..ctor() in C:\Documents and
Settings\Jameson.WHITERABBIT
\My Documents\Visual Studio Projects\PureIRCD\connectivity\endpoint.vb:line
380
at PureIRCD.PLine.init(Boolean silent) in C:\Documents and
Settings\Jameson.W
HITERABBIT\My Documents\Visual Studio
Projects\PureIRCD\memory\globals.vb:line 6
62
at PureIRCD.conf.InitLinks() in C:\Documents and
Settings\Jameson.WHITERABBIT
\My Documents\Visual Studio Projects\PureIRCD\memory\conf.vb:line 340
at PureIRCD.IRCd.load_irc() in C:\Documents and
Settings\Jameson.WHITERABBIT\
My Documents\Visual Studio Projects\PureIRCD\core\ircd.vb:line 98


Your error message indicates a lack of resources on the system when
trying to create a socket. Look on msdn from WSAENOBUFS (socket error
number 10055). Here is a quote:

WSAENOBUFS (10055) No buffer space available.

No buffer space available.
An operation on a socket could not be performed because the system
lacked sufficient buffer space or because a queue was full.

WinSock description: The WinSock implementation was unable to allocate
additional memory to accommodate the function request.

User suggestions: This error indicates a shortage of resources on your
system. It can occur if you're trying to run too many applications (of
any kind) simultaneously on your machine. If this tends to occur after
running certain applications for a while, it might be a symptom of an
application that doesn't return system resources (like memory) properly.
It may also indicate you are not closing the applications properly. If
it persists, exit Windows or reboot your machine to remedy the problem.
You can monitor available memory with Program Manager's "Help/About..."
command.

Basically you may have a memory leak. Are you managing your socket
resources correctly?

--
Tom Shelton [MVP]
Powered By Gentoo Linux 1.4
Nearly every complex solution to a programming problem that I
have looked at carefully has turned out to be wrong.
-- Brent Welch
 
M

mrpolitics

Armin... there is no specific group for socket problems. This is the group
for question on VB DOTNET, so I asked here. Why? Because I know VB DOTNET
so most importantly when I ask for help if someone replys with a source
suggestion I might be able to understand the solution easyer. Also it's
possible that my problem has been noticed by other VB DOTNET users in this
gorup and that perhaps the problemis a handicap with VB and its use of the
Framework. Also many people in this group know multiple languages esp. the
MVP's. Stick around longer kid you might learn something.
 
M

mrpolitics

Thanks for the advice I'll give it a look. I tried restarting the computer
and that didn't work, so I'm going to try killing as many processes as
possible next time.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top