Strange socket error

"Jérôme M. Berger" jeberger at free.fr
Wed Dec 22 02:04:59 PST 2010


Bob Cowdery wrote:
> The listner is a single thread that creates an instance of my web socket
> class for each connection. I'm not trying to support lots of users, most
> of the time just one. The listner code is almost the same as the sockets
> example. If you or anyone else can spare a few moments the code can be
> browsed at http://code.google.com/p/dcsdr/source/browse
> (branches/linux/DcSdr/WsServer/listener.d). The trunk is the Windows
> version. I'd be very happy if it's something I'm doing wrong.
> 
	I looked at your code and I don't see what could cause this issue.
Sorry.

	I did however find a bug: when a client connection is closed, you
remove the corresponding socket from reads but you don't remove the
WebSocket from wsset...

		Jerome
-- 
mailto:jeberger at free.fr
http://jeberger.free.fr
Jabber: jeberger at jabber.fr

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20101222/95209649/attachment.pgp>


More information about the Digitalmars-d-learn mailing list