@ Lucian <br><br>Multumesc pentru ajutor.<br><br>Scuze de nervii cauzati cu cod neordonat dar era doar o varianta beta.<br><br>Mutumesc,<br><br>Dan<br><br><div class="gmail_quote">2009/9/2 Dan Gioga <span dir="ltr"><<a href="mailto:dgioga@gmail.com">dgioga@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Am rezolvat problema. <br><br>Era de la strucura mq_attr pe care o folosesc la crearea cozii. <br>
<br>before:<br>attr.mq_flags = 0; // blocking <br>attr.mq_maxmsg = 100;<br>attr.mq_msgsize = MAX_SIZE;<br>attr.mq_curmsgs = 0;<br>
<br>after:<br>attr.mq_flags = 0; // blocking <br>
attr.mq_maxmsg = 10;<br>
attr.mq_msgsize = MAX_SIZE;<br>
attr.mq_curmsgs = 0;<br><br><br>"attr->mq_maxmsg must be less than or equal to the msg_max limit"<br><br>Nu se crea coada => clientul nu avea ce deschide. Sau cel putin asa am inteles eu din paginile de manual.<br>
<br><br><div class="gmail_quote">2009/9/1 Dragos Ciprian Nedelcu <span dir="ltr"><<a href="mailto:dadu_cip@yahoo.com" target="_blank">dadu_cip@yahoo.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">
<table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; font-size: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit;" valign="top">
- client: mq_open():: No such file or directory<br><br>Cel mai probabil serverul se blocheaza, iar atunci cand clientul incearca sa deschida coada, aceasta nu mai exista. Am avut si eu probleme de genul asta; la mine se bloca serverul din cauza unor apeluri malloc(), sau din cauza strdup() (nu mi-am dat seama exact). Incearca sa scapi de malloc si strdup si vezi daca merge.<br>
</td></tr></tbody></table><br>
<br></div><div class="im">_______________________________________________<br>
so mailing list<br>
<a href="mailto:so@cursuri.cs.pub.ro" target="_blank">so@cursuri.cs.pub.ro</a><br>
<a href="http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so" target="_blank">http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so</a><br>
<br></div></blockquote></div><br>
</blockquote></div><br>